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

index.js里面对于components的路径是有问题的 #3

Open
lyh2668 opened this issue Oct 22, 2017 · 0 comments
Open

index.js里面对于components的路径是有问题的 #3

lyh2668 opened this issue Oct 22, 2017 · 0 comments

Comments

@lyh2668
Copy link

lyh2668 commented Oct 22, 2017

在index的40行let component = new Component(require(../components/${item}/index))

  1. 该组件一般放在libs目录下,index的path为'/libs/wx-component/index.js'
  2. components目录一般和pages同级,所以这个地方将无法正确引入components目录,希望做一下修改。
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