When I enable inline-source-map in webpack config. A warning was emitted:
WARNING in ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '.../node_modules/@reduxjs/toolkit/dist/module.js.map' file: Error: ENOENT: no such file or directory, open '.../node_modules/@reduxjs/toolkit/dist/module.js.map'
Same here using the source-map-loader v3.0.0 and webpack 5.38.1 with custom webpack configuration.
Can someone put together an example repo that demonstrates this issue?
Here is an example repo.
I started from this boilerplate, the only changes are in this commit.
Running yarn start gives warning Failed to parse source map from...
Hope this helps 馃槃
changing sourceMappingUR redux-toolkit.esm.js to "//# sourceMappingURL=redux-toolkit.esm.js.map" and removing the "modules.ts" Ref in the redux-toolkit.esm.js.map and its working again.