teodosii / react-notifications-component

Delightful and highly customisable React Component to notify your users
https://teodosii.github.io/react-notifications-component/
MIT License
1.27k stars 73 forks source link

Failed to parse source map: URL not supported warning! when building an app #78

Closed efrainastudillo closed 3 years ago

efrainastudillo commented 4 years ago

I'm having a lot of warnings, It's not critical, but is annoying to have such messages in the console... To solve this (Warnings disappear), I removed this line //# sourceMappingURL=react-notifications.dev.js.map from react-notifications.dev.js at the end of this file.

I am doing something wrong ? have you a way how to solve this in a better way ?

WARNING in ./node_modules/react-notifications-component/dist/js/react-notifications.dev.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: "webpack://ReactNotifications/external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"}" URL is not supported
 @ ./node_modules/react-notifications-component/dist/index.js 6:19-61
 @ ./src/components/app.component.tsx
 @ ./src/index.tsx

WARNING in ./node_modules/react-notifications-component/dist/js/react-notifications.dev.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: "webpack://ReactNotifications/webpack/bootstrap" URL is not supported
 @ ./node_modules/react-notifications-component/dist/index.js 6:19-61
 @ ./src/components/app.component.tsx
 @ ./src/index.tsx
teodosii commented 4 years ago

Sorry for late response but I've been very busy. Is it the same on production? You're using the dev build. I will look into.