contentful / field-editors

React components and extensions for building Contentful entry editor
https://contentful-field-editors.netlify.app/
MIT License
150 stars 118 forks source link

Rich text editor not rendering #1191

Open hsheikhali1P opened 2 years ago

hsheikhali1P commented 2 years ago

Looks like there is an issue with the Rich Text Editor. It's not rendering at all. Here is the error I am getting:

WARNING in ./node_modules/@contentful/rich-text-types/dist/blocks.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/blocks.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/blocks.ts'

WARNING in ./node_modules/@contentful/rich-text-types/dist/emptyDocument.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/emptyDocument.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/emptyDocument.ts'

WARNING in ./node_modules/@contentful/rich-text-types/dist/helpers.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/helpers.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/helpers.ts'

WARNING in ./node_modules/@contentful/rich-text-types/dist/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/index.ts'

WARNING in ./node_modules/@contentful/rich-text-types/dist/inlines.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/inlines.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/inlines.ts'

WARNING in ./node_modules/@contentful/rich-text-types/dist/marks.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/marks.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/marks.ts'

WARNING in ./node_modules/@contentful/rich-text-types/dist/nodeTypes.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/nodeTypes.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/nodeTypes.ts'

WARNING in ./node_modules/@contentful/rich-text-types/dist/schemaConstraints.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/schemaConstraints.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/schemaConstraints.ts'

WARNING in ./node_modules/@contentful/rich-text-types/dist/types.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/types.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsheikhali/projects/contentful-dynamic-resources-editor/node_modules/@contentful/rich-text-types/src/types.ts
ghost commented 2 years ago

I also encountered this error when following the video tutorial to create a new Contentful app and add the rich text editor.

Adding GENERATE_SOURCEMAP=false to the start task fixed it for me: package.json: "start": "cross-env BROWSER=none GENERATE_SOURCEMAP=false react-scripts start",

github-actions[bot] commented 2 years ago

Marking issue as stale since there was no acitivty for 30 days