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

Import not working after 0.4.* #7

Closed
dermansi opened this issue Jan 22, 2019 · 4 comments
Closed

Import not working after 0.4.* #7

dermansi opened this issue Jan 22, 2019 · 4 comments

Comments

@dermansi
Copy link

dermansi commented Jan 22, 2019

I can't use the component after the update to 0.4.*

It says:

Failed to compile. ./node_modules/vue-bulma-accordion/dist/vue-bulma-accordion.common.js
Module build failed: Error: ENOENT: no such file or directory, open '/src/node_modules/vue-bulma-accordion/dist/vue-bulma-accordion.common.js'

I use the following in my component:
import { BulmaAccordion, BulmaAccordionItem } from 'vue-bulma-accordion';

Am I doing something wrong?

@Lunrtick
Copy link
Owner

Lunrtick commented Jan 22, 2019

It seems like your build tool is looking in the wrong directory - no such file or directory, open '/src/node_modules/vue-bulma-accordion/dist/vue-bulma-accordion.common.js'. The /src bit probably shouldn't be there.

What build tool are you using? Webpack?

@dermansi
Copy link
Author

I'm using webpack. It's the vue webpack starter template

@Lunrtick
Copy link
Owner

Can you share your webpack config?

Also, is there any particular reason you're using the starter template instead of the new Vue CLI?

@dermansi
Copy link
Author

I'm on mobile, I can share tomorrow. But it's the base config. The project is older than vue cli 3 that's why we still use the starter.

@dermansi dermansi closed this as completed Feb 9, 2019
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