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下载包无/dist目录 #17

Closed
gongxiansheng opened this issue Feb 8, 2023 · 2 comments
Closed

npm下载包无/dist目录 #17

gongxiansheng opened this issue Feb 8, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@gongxiansheng
Copy link

package.json里面的 main: './dist/***',没有对应文件呢

@wchbrad
Copy link
Owner

wchbrad commented Mar 13, 2023

如果是npm下载的,并没有对应文件,但不影响在项目中引用:
全局引用:
import Vue from "vue";
import VueEasyTree from "@wchbrad/vue-easy-tree";
// 样式文件,可以根据需要自定义样式或主题
import "@wchbrad/vue-easy-tree/src/assets/index.scss"
Vue.use(VueEasyTree)

组件内引用:
import VueEasyTree from "@wchbrad/vue-easy-tree";
// 样式文件,可以根据需要自定义样式或主题
import "@wchbrad/vue-easy-tree/src/assets/index.scss"

export default {
components: {
VueEasyTree
}
}

wchbrad added a commit that referenced this issue Mar 27, 2023
@wchbrad
Copy link
Owner

wchbrad commented Mar 27, 2023

现在已经增加了/dist目录

@wchbrad wchbrad closed this as completed Mar 27, 2023
@wchbrad wchbrad changed the title npm下载包有问题,项目引用文件报找不到对应模块。 npm下载包无/dist目录 Mar 27, 2023
@wchbrad wchbrad added the help wanted Extra attention is needed label Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants