rich-text
rich-text copied to clipboard
Getting failed to parse source map warnings from several files
i am using conentful in react and i am getting the following warning when i run on dev mode.
Failed to parse source map from 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\blocks.ts' file: Error: ENOENT: no such file or directory, open 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\blocks.ts'
Failed to parse source map from 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\emptyDocument.ts' file: Error: ENOENT: no such file or directory, open 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\emptyDocument.ts'
Failed to parse source map from 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\helpers.ts' file: Error: ENOENT: no such file or directory, open 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\helpers.ts'
Failed to parse source map from 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\index.ts' file: Error: ENOENT: no such file or directory, open 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\index.ts'
Failed to parse source map from 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\inlines.ts' file: Error: ENOENT: no such file or directory, open 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\inlines.ts'
Failed to parse source map from 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\marks.ts' file: Error: ENOENT: no such file or directory, open 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\marks.ts'
Failed to parse source map from 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\nodeTypes.ts' file: Error: ENOENT: no such file or directory, open 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\nodeTypes.ts'
Failed to parse source map from 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\schemaConstraints.ts' file: Error: ENOENT: no such file or directory, open 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\schemaConstraints.ts'
Failed to parse source map from 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\types.ts' file: Error: ENOENT: no such file or directory, open 'C:\Selva\Bootstrap\reactapp\myapp\node_modules@contentful\rich-text-types\src\types.ts'
downgrading to 14.1.2 fixed it for me, maybe some less harsh downgrade would also work
yes. Thank you. i tried 15.7.0 and it works and does not have these warnings
How do you downgrade?
This is indeed quite annoying. would be good to have fixed
Facing same issue with react-scripts v5 (project without typescript).
+1
Seems the source maps reference to ../src/
but it is not packaged in node_modules.
Adding them could be solve this?