question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to parse source map (@toast-ui/editor/dist/purify.js.map)

See original GitHub issue

Describe 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:

  1. Add “@toast-ui/editor”: “^3.1.1”, “@toast-ui/react-editor”: “^3.1.1”,
  2. 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:open
  • Created 2 years ago
  • Reactions:15
  • Comments:6

github_iconTop GitHub Comments

5reactions
dogeowcommented, Jan 22, 2022

+1

3reactions
siyeonscommented, Mar 15, 2022

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.

"scripts": {
    "start": "GENERATE_SOURCEMAP=false react-scripts start",
   ...
  },

or

In my case:

...
 "start": "GENERATE_SOURCEMAP=false craco start"
...

I think this is a very ad hoc solution… but it works…

Hopefully the missing or incorrect source map will be fixed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found