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

vue使用CDN引入后,使用v-code-diff报错Uncaught (in promise) TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../". #33

Closed
huoyuhao opened this issue Jun 29, 2022 · 3 comments

Comments

@huoyuhao
Copy link

huoyuhao commented Jun 29, 2022

vite + vue3
vue本地运行开发无问题,发布打包,由于vue使用CDN,https://unpkg.com/[email protected]/dist/vue.global.js
项目运行报错:
v-code-diff是最新版本0.3.11

policy:1 Uncaught (in promise) TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".

@Shimada666
Copy link
Owner

和这个问题一样不?
#24 (comment)

@z-making
Copy link

z-making commented Nov 1, 2022

vue3 + vite
一样是本地开发没问题,但是打包之后部署到服务器就有问题了,看到你之前回的那个问题 一样很迷 不一样
Uncaught TypeError: Failed to resolve module specifier "element-plus". Relative references must start with either "/", "./", or "../".

@Shimada666
Copy link
Owner

Shimada666 commented Nov 1, 2022

#24 (comment)

看过这个么,将 element plus 也打进去好像能解决问题
MMF-FE/vite-plugin-cdn-import#13

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