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

使用vue3和element-plus报错如下。 #3

Open
qe-present opened this issue Apr 14, 2024 · 2 comments
Open

使用vue3和element-plus报错如下。 #3

qe-present opened this issue Apr 14, 2024 · 2 comments

Comments

@qe-present
Copy link

X [ERROR] No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"

node_modules/omni-magic-cube/index.es.js:1:7:
  1 │ import require$$0, { onMounted, nextTick, watch, unref, isRef, getCurrentInstance, ref, readonly, getCurrentScope, onScopeDispose, toRefs as toRefs$1, customRef, comp... 
    ╵        ~~~~~~~~~~

C:\Users\26644\WebstormProjects\cube1\node_modules\esbuild\lib\main.js:1651
let error = new Error(text);
^

Error: Build failed with 1 error:
node_modules/omni-magic-cube/index.es.js:1:7: ERROR: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"
at failureErrorWithLog (C:\Users\26644\WebstormProjects\cube1\node_modules\esbuild\lib\main.js:1651:15)
at C:\Users\26644\WebstormProjects\cube1\node_modules\esbuild\lib\main.js:1059:25
at C:\Users\26644\WebstormProjects\cube1\node_modules\esbuild\lib\main.js:1527:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}

package.json文件如下
{
"name": "cube1",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"element-plus": "^2.7.0",
"omni-magic-cube": "^0.12.8",
"vue": "^3.4.21"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"vite": "^5.2.0"
}
}

@qe-present
Copy link
Author

快走

ok

@molian-Z
Copy link
Owner

可以引用umd路径来使用 es打包有点问题我这几天看看修复一下

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