rich-text icon indicating copy to clipboard operation
rich-text copied to clipboard

Getting failed to parse source map warnings from several files

Open dvselva opened this issue 2 years ago • 7 comments

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'

dvselva avatar May 02 '22 15:05 dvselva

downgrading to 14.1.2 fixed it for me, maybe some less harsh downgrade would also work

mendrik avatar May 27 '22 20:05 mendrik

yes. Thank you. i tried 15.7.0 and it works and does not have these warnings

dvselva avatar May 27 '22 21:05 dvselva

How do you downgrade?

amarcin avatar Jul 12 '22 05:07 amarcin

This is indeed quite annoying. would be good to have fixed

tasmith039 avatar Aug 04 '22 19:08 tasmith039

Facing same issue with react-scripts v5 (project without typescript).

VamOSGS avatar Aug 09 '22 06:08 VamOSGS

+1

Svarozic avatar Aug 24 '22 12:08 Svarozic

Seems the source maps reference to ../src/ but it is not packaged in node_modules.

Adding them could be solve this?

danielbeutner avatar Sep 08 '22 13:09 danielbeutner