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

使用npm 安装包以后引用报错 求大佬指点 #35

Open
hechengloong opened this issue Mar 17, 2023 · 2 comments
Open

使用npm 安装包以后引用报错 求大佬指点 #35

hechengloong opened this issue Mar 17, 2023 · 2 comments

Comments

@hechengloong
Copy link

使用npm 安装包以后引用报错
Internal server error: Failed to resolve entry for package "@dataview/datav-vue3". The package may have incorrect main/module/exports specified in its package.json.

@qiaobing96
Copy link

同样的问题 求解

@CeciliaBlite
Copy link

CeciliaBlite commented Apr 8, 2023

原因:@dataview\datav-vue3/package.json文件中引用文件名后缀出错
@dataview\datav-vue3/package.json中修改
// "module": "./es/index.js",// 修改前
"module": "./es/index.mjs", // 修改后
参考大佬:
https://blog.csdn.net/weixin_43832353/article/details/129228896

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