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

按步骤引入组件后,项目运行报错 #8

Closed
xm13162179391 opened this issue Aug 22, 2023 · 2 comments
Closed

按步骤引入组件后,项目运行报错 #8

xm13162179391 opened this issue Aug 22, 2023 · 2 comments

Comments

@xm13162179391
Copy link

1、如您提供的官方安装指南:https://wocwin.github.io/t-ui-plus/components/
2、在项目目录通过cmd分别执行以下命令;
2.1、npm install @wocwin/t-ui-plus -S

21

2.2、pnpm add @wocwin/t-ui-plus -S

22

3、main.ts引入:

引入组件

4、T-ui-plus组件 Volar 类型提示:
4

5、问题:运行项目后打开报错如图所示:

5

6、问题:您之前文章中进群二维码已失效,可以麻烦提供一个新的吗?后续若遇到使用过程中的问题在群里请教下。

@wocwin
Copy link
Owner

wocwin commented Aug 22, 2023

1、如您提供的官方安装指南:https://wocwin.github.io/t-ui-plus/components/ 2、在项目目录通过cmd分别执行以下命令; 2.1、npm install @wocwin/t-ui-plus -S

21

2.2、pnpm add @wocwin/t-ui-plus -S

22

3、main.ts引入:

引入组件

4、T-ui-plus组件 Volar 类型提示: 4

5、问题:运行项目后打开报错如图所示:

5

6、问题:您之前文章中进群二维码已失效,可以麻烦提供一个新的吗?后续若遇到使用过程中的问题在群里请教下。

我引入注册的组件是:
import TuiPlus from '@wocwin/t-ui-plus'
import '@wocwin/t-ui-plus/lib/style.css'
app.use(TuiPlus)
image

@wocwin
Copy link
Owner

wocwin commented Sep 6, 2023

你引入组件的方式有问题!!!
我引入注册的组件是:
import TuiPlus from '@wocwin/t-ui-plus'
import '@wocwin/t-ui-plus/lib/style.css'
app.use(TuiPlus)
image

@wocwin wocwin closed this as completed Nov 28, 2023
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