Failed to parse source map (@toast-ui/editor/dist/purify.js.map)
See original GitHub issueDescribe the bug
Cant parse the source map for toast-ui/editor
Compiled with warnings.
Failed to parse source map from 'node_modules/.pnpm/@toast-ui+editor@3.1.1/node_modules/@toast-ui/editor/dist/purify.js.map' file: Error: ENOENT: no such file or directory, open 'node_modules/.pnpm/@toast-ui+editor@3.1.1/node_modules/@toast-ui/editor/dist/purify.js.map'
To Reproduce
Steps to reproduce the behavior:
- Add “@toast-ui/editor”: “^3.1.1”, “@toast-ui/react-editor”: “^3.1.1”,
- start devserver
- using PNPM, react-scripts 5.0.0 (webpack 5)
- There is no purify.js.map in the dist folder
Expected behavior
Compile with no warnings
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:6
Top Results From Across the Web
ESRI : Failed to parse source map - Stack Overflow
js and was seeing Failed to parse SourceMap in the Chrome console. When I switched to using the uncompressed Backendless.js (without the .min...
Read more >After Upgrading to CRA 5.0 getting a lot of: Failed to parse ...
The best solution is to open a issue or pullrequest on that packages. The warnings are correct. These packages source maps pointing to...
Read more >source-map-loader - webpack
The source-map-loader extracts existing source maps from all JavaScript entries. This includes both inline source maps as well as those linked via URL....
Read more >"Failed to parse source map" errors with datetime picker and ...
Hello, When using the Atlaskit DateTimePicker components in my Create React App 5.0.0 app, I get warnings about missing sourcemaps in ...
Read more >Fixing sourcemap errors in Webpack 5 - Ionic React
[react-scripts] Failed to parse source map from '/home/anon/d/ionic/node_modules/@capacitor/app/src/definitions.ts' file: Error: ENOENT: no ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

+1
I think this issue is related to this PR. This PR applies to react-scripts@5.0.0.
While looking for solutions, I found similar issues in other library. (https://github.com/mswjs/msw/issues/1030)
The above issues include the following solutions. just add the GENERATE_SOURCEMAP=false before the start script.
or
In my case:
I think this is a very ad hoc solution… but it works…
Hopefully the missing or incorrect source map will be fixed.