-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Error: Cannot find module #443
Comments
Do you install VuePress globally? and, is there any reproduced repo? |
Yes Vuepress is installed Globally. I will setup a repo today. Thanks |
@collymore Suggest to install vuepress locally at current version. Global cli still have some issues |
btw, as a temporary solution, #353 may help |
I've added vuepress as a local dependancy and installed, it has now found the module but it's throwing another error which I believe is related. Running build withe the following command,
returns
It still runs correctly with I've setup a repo with the code here Thanks |
@collymore Excuse me, I just downloaded your repo and cannot reproduce it: |
Thanks for taking a look, I've just setup another Mac and an Ubuntu computer and both error at that same point. Mac OSX Ubuntu 14.04.5 LTS Can you let me know what versions you were using? It looks like the .vue file hasn't been compiled first |
Oh, it's truly an issue, I reproduced it. For now, you can use relative path to get a quick fix: Change: import vueConfirmationButton from 'vue-confirmation-button/dist/vue-confirmation-button.vue'; To: import vueConfirmationButton from '../../node_modules/vue-confirmation-button/dist/vue-confirmation-button.vue'; But it works at |
Closing this since the 1st issue cannot be reproduced, for the 2nd issue, let's go #451. |
I'm trying to use a Vue component from the node_modules folder. It works correctly when running as
vuepress dev
but not whenvuepress build
Installed with Yarn by running
yarn add vue-carousel-3d
and imported within
.vuepress/enhanceApp.js
Runing
Vuepress build
returnsWhat else do I need to do for this to build?
The text was updated successfully, but these errors were encountered: