What is the content of package.json ?
And could you provide the lines on package-lock.json that contains "popper" ?
After starting to have a look into Laravel Mix, I issued the commands
"npm install && npm run dev".
I have done nothing else. I am now having the issue 'Failed to load resource" on popper.js.map when I view the page source. How do I fix this?
To dig a bit deeper, I was receiving this 404 error in Safari, and weirdly the logout dropdown would not work in the default auth scaffolding. On observation adding the line:
mix.sourceMaps()
removed the resource not found and the dropdown would function correctly. Looking at the Laravel Mix documentation this could be localised to a single file. Therefore I changed the line to:
.js('node_modules/popper.js/dist/popper.js', 'public/js').sourceMaps()
as it is only necessary for popper.js, recompiled using
npm run dev
I hope this helps someone else as I have spent a couple of hours searching for an answer
Please or to participate in this conversation.