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

@monaco-editor : Module parse failed: Unexpected token (1:1806) #27

Open
huiwenhan opened this issue Apr 8, 2024 · 2 comments
Open

Comments

@huiwenhan
Copy link

huiwenhan commented Apr 8, 2024

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/common/utils.mjs 179:9-18
Can't import the named export 'P' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/common/utils.mjs 179:31-40
Can't import the named export 'S' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs 81:9-21
Can't import the named export 'decode' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs 81:44-56
Can't import the named export 'decode' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/common/utils.mjs 92:18-28
Can't import the named export 'decodeHTML' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/rules_inline/entity.mjs 36:22-32
Can't import the named export 'decodeHTML' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/parser_inline.mjs
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs 60:9-21
Can't import the named export 'encode' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs 60:22-34
Can't import the named export 'format' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs 81:22-34
Can't import the named export 'format' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs 44:17-28
Can't import the named export 'parse' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/prosemirror-markdown/node_modules/markdown-it/lib/index.mjs 64:17-28
Can't import the named export 'parse' from non EcmaScript module (only default export is available)
@ ./node_modules/prosemirror-markdown/node_modules/markdown-it/index.mjs
@ ./node_modules/prosemirror-markdown/dist/index.js
@ ./node_modules/rich-markdown-editor/dist/lib/ExtensionManager.js
@ ./node_modules/rich-markdown-editor/dist/index.js
@ ./src/pages/workbench/Workbench.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.ts

ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 1:1806
Module parse failed: Unexpected token (1:1806)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

@huiwenhan
Copy link
Author

Node.js v18.19.0

@phodal
Copy link
Member

phodal commented Apr 9, 2024

@phodal phodal closed this as completed Apr 9, 2024
@phodal phodal reopened this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants