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

feat: suppoert esm #51

Open
Andyczc opened this issue Mar 31, 2023 · 1 comment
Open

feat: suppoert esm #51

Andyczc opened this issue Mar 31, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Andyczc
Copy link

Andyczc commented Mar 31, 2023

你的功能请求是否与某些问题相关?请描述
能否添加最新vuepress支持,
"vue": "^3.2.47",
"vuepress": "2.0.0-beta.61",

描述您想要的解决方案
简洁清晰地描述一下你想要的特性是怎样的。

描述你考虑过的备选方案
简洁清晰地描述一下你考虑过的其他备选方案,可能会有什么问题。

附加上下文
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: microApp-training/node_modules/@vuepress/utils/dist/index.js
require() of ES modules is not supported.
require() of microApp-training/node_modules/@vuepress/utils/dist/index.js frommicroApp-training/node_modules/vuepress-plugin-demo-code/src/node/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename microApp-training/node_modules/@vuepress/utils/dist/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from microApp-training/node_modules/@vuepress/utils/package.json.

at new NodeError (internal/errors.js:322:7)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1131:13)
at Module.load (internal/modules/cjs/loader.js:979:32)
@Andyczc Andyczc added the enhancement New feature or request label Mar 31, 2023
@BuptStEve BuptStEve changed the title feat: your feature... feat: suppoert esm Apr 14, 2023
@BuptStEve
Copy link
Owner

pr welcome~
不好意思,最近比较忙哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants