Failed to parse source map
Full error message
I created an npm library with rollup. Then, I install and use it in a React project. When i npm start the project it throw me this line: Failed to parse source map from 'C:\Users\XXXX\Desktop\example\node_modules\@AAA\BBB\src\components\Button\Button.tsx' file: Error: ENO ENT: no such file or directory, open 'C:\Users\XXXX\Desktop\example\node_modules\@AAA\BBB\src\components\Button\Button.tsx' This is like a warning more like an error because the button works and webpack says me "No issues found." In the node_modules folder I have the @AAA/BBB folder with /dist/cjs and /dist/esm. I dont know what can produce the search in /src in the node modules. Thank you for your time <3
Solutionsource: stackoverflow \u2197
You can remove the warning by adding GENERATE_SOURCEMAP=false to your .env file Actually, CRA with Webpack 5.x cause it. They are working on resolving (https://github.com/facebook/create-react-app/pull/11752)
API access
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/ddf3d7cd125f9ea82e2f0e11387faa5c12c0a622e86ca2b0cea1f1f86e82aa92hash \u00b7 ddf3d7cd125f9ea82e2f0e11387faa5c12c0a622e86ca2b0cea1f1f86e82aa92