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

Vue2.6.x导入VueSimplemde时出现报错 xxx is not exported from package #125

Open
1oid opened this issue Jun 14, 2022 · 2 comments
Open

Comments

@1oid
Copy link

1oid commented Jun 14, 2022

环境

{
"vue": "^2.6.14",
"vue-router": "^3.5.1",
"vue-simplemde": "^2.1.1",
"vuex": "^3.6.2"
}

遇到的问题

main.js中按文档要求引入

import VueSimplemde from 'vue-simplemde'

出现报错

Compiled with problems:X

ERROR in ./node_modules/simplemde/src/js/simplemde.js 34:0-48

Module not found: Error: Package path ./addon/edit/continuelist.js is not exported from package /Users/xxxxx/node_modules/codemirror (see exports field in /Users/xxxxx/node_modules/codemirror/package.json)


ERROR in ./node_modules/simplemde/src/js/simplemde.js 38:0-49

Module not found: Error: Package path ./addon/display/fullscreen.js is not exported from package /Users/xxxxx/node_modules/codemirror (see exports field in /Users/xxxxx/node_modules/codemirror/package.json)
.............一堆相似的报错.....
@SafeShows
Copy link

I'm having the same issue but with more errors.

Module not found: Error: Package path ./addon/edit/continuelist.js is not exported from package D:\Dev\ProjectPhoenix\node_modules\codemirror (see exports field in D:\Dev\ProjectPhoenix\node_modules\codemirror\package.json)

ERROR in ./node_modules/simplemde/src/js/simplemde.js 6:0-49
Module not found: Error: Package path ./addon/display/fullscreen.js is not exported from package D:\Dev\ProjectPhoenix\node_modules\codemirror (see exports field in D:\Dev\ProjectPhoenix\node_modules\codemirror\package.json)

ERROR in ./node_modules/simplemde/src/js/simplemde.js 7:0-47
Module not found: Error: Package path ./mode/markdown/markdown.js is not exported from package D:\Dev\ProjectPhoenix\node_modules\codemirror (see exports field in D:\Dev\ProjectPhoenix\node_modules\codemirror\package.json)

ERROR in ./node_modules/simplemde/src/js/simplemde.js 8:0-43
Module not found: Error: Package path ./addon/mode/overlay.js is not exported from package D:\Dev\ProjectPhoenix\node_modules\codemirror (see exports field in D:\Dev\ProjectPhoenix\node_modules\codemirror\package.json)

ERROR in ./node_modules/simplemde/src/js/simplemde.js 9:0-50
Module not found: Error: Package path ./addon/display/placeholder.js is not exported from package D:\Dev\ProjectPhoenix\node_modules\codemirror (see exports field in D:\Dev\ProjectPhoenix\node_modules\codemirror\package.json)

ERROR in ./node_modules/simplemde/src/js/simplemde.js 10:0-55
Module not found: Error: Package path ./addon/selection/mark-selection.js is not exported from package D:\Dev\ProjectPhoenix\node_modules\codemirror (see exports field in D:\Dev\ProjectPhoenix\node_modules\codemirror\package.json)

ERROR in ./node_modules/simplemde/src/js/simplemde.js 11:0-37
Module not found: Error: Package path ./mode/gfm/gfm.js is not exported from package D:\Dev\ProjectPhoenix\node_modules\codemirror (see exports field in D:\Dev\ProjectPhoenix\node_modules\codemirror\package.json)

ERROR in ./node_modules/simplemde/src/js/simplemde.js 12:0-37
Module not found: Error: Package path ./mode/xml/xml.js is not exported from package D:\Dev\ProjectPhoenix\node_modules\codemirror (see exports field in D:\Dev\ProjectPhoenix\node_modules\codemirror\package.json) ```

@DidenkoDmytro
Copy link

Your must setup codemirror version < 6.0.1

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

3 participants