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

deno+vue3 项目中添加依赖 #105

Open
yubaoquan opened this issue Apr 6, 2024 · 0 comments
Open

deno+vue3 项目中添加依赖 #105

yubaoquan opened this issue Apr 6, 2024 · 0 comments

Comments

@yubaoquan
Copy link
Owner

在 main.ts 中引入了 vuetify, 但是报错找不到这个模块.
需要做以下步骤

  1. 在deno.json 的 imports 中添加依赖 "vuetify": "npm:[email protected]",
  2. 在项目根目录执行 deno cache --node-modules-dir src/main.ts 来更新 node_modules 中的依赖, 即添加 vuetify
  3. 在 tsconfig.json 的 compilerOptions 中添加 "types": ["vuetify"]

这样就可以识别到 vuetify 了

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

1 participant