Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rich text editor not rendering #1191

Open
hsheikhali1P opened this issue Jul 19, 2022 · 2 comments
Open

Rich text editor not rendering #1191

hsheikhali1P opened this issue Jul 19, 2022 · 2 comments
Labels
stale Used to mark when there was no activity for a set period of time

Comments

@hsheikhali1P
Copy link

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
Copy link

ghost commented Aug 9, 2022

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
Copy link

github-actions bot commented Sep 8, 2022

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

@github-actions github-actions bot added the stale Used to mark when there was no activity for a set period of time label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Used to mark when there was no activity for a set period of time
Projects
None yet
Development

No branches or pull requests

1 participant