Lunrtick / vue-bulma-accordion

A simple, easily configurable accordion or collapsible for Vue, styled with Bulma
https://lunrtick.github.io/vue-bulma-accordion/
35 stars 6 forks source link

Import not working after 0.4.* #7

Closed dermansi closed 5 years ago

dermansi commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

Lunrtick commented 5 years ago

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 commented 5 years ago

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.