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

[tdesign-mobile-vue] 通过npm安装,引入失败 #1559

Closed
wangzhuo1982 opened this issue Sep 1, 2024 · 3 comments
Closed

[tdesign-mobile-vue] 通过npm安装,引入失败 #1559

wangzhuo1982 opened this issue Sep 1, 2024 · 3 comments

Comments

@wangzhuo1982
Copy link

tdesign-mobile-vue 版本

1.4.0

重现链接

No response

重现步骤

import TDesign from 'tdesign-vue-next';
提示错误
Failed to resolve entry for package "tdesign-mobile-vue". The package may have incorrect main/module/exports specified in its package.json.

期望结果

No response

实际结果

No response

框架版本

3.4.29

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Sep 1, 2024

👋 @wangzhuo1982,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@wangzhuo1982
Copy link
Author

webstorm中系统自带的VUE模板,按照官方示例在main.js中使用:

import './assets/main.css'
import 'tdesign-mobile-vue/es/style/index.css';

import { createApp } from 'vue'

import App from './App.vue'
import TDesign from 'tdesign-mobile-vue';
createApp(App).mount('#app')
const app = createApp(App);
app.use(TDesign);

在编译的时候提示错误:

[vite] Internal server error: Failed to resolve entry for package "tdesign-mobile-vue". The package may have incorrect main/module/exports specified in its package.json.

同样的情况使用桌面端

import TDesign from 'tdesign-vue-next';

正常

@liweijie0812
Copy link
Collaborator

升级1.4.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

2 participants