I've faced this issue so many times that it became annoying at this point.
When I add NPM package like the doc is mentioning and run laravel mix, it bundles the package and works. However!!!
I can't follow the package documentation and code examples due to the following errors I'm getting. When I create a new JS file named 'Pintura-options.js' within public/demo8/plugins/custom/FilePond/Pintura-options.js
and try to use
import something from @something
<script type="module"/>
I get another error.Hi,
Sorry for the delay. Could you please separate your custom plugin into another folder? Not in the folder plugins/custom
.
Then update the webpack.mix.js to include your custom js file.
https://laravel-mix.com/docs/main/mixjs
Thanks