Webpack Installing Bootstrap - missing popper.js.map

yoni.str picture yoni.str · Nov 29, 2017 · Viewed 78.4k times · Source

I followed the instructions in https://getbootstrap.com/docs/4.0/getting-started/webpack/ and I also installed jquery and popper.js with npm.

Still when I use the output bundle.js, the browser keeps on sending GET requests for popper.js.map and I need all the assets to be part of the bundle.js.

I searched a lot for the proper answer but none that explains whats wrong with the instructions mentioned above, exists. Please help.

Answer

Hoodlum picture Hoodlum · Feb 26, 2018

At the very end of the popper.js file there is a comment like this:

//# sourceMappingURL=popper.js.map

Removing the commented line fixed the issue for me.