Reputation: 143
This is probably really easy, but i dont know what it's called so i dont know what to google for.
My filestructure is like this:
src
├──components
| └──SomeComponentGroup
| └──Button1.vue
|
|
├──mixins
| └──MyMixin.js
How do i import MyMixin from Button1? import MyMixin from '../mixins/MyMixins.js'
doesnt work
Upvotes: 0
Views: 110
Reputation: 143
Yeah it was really easy. @/mixins/MyMixins.js;
was the solution
Upvotes: 1
Reputation:
Am I missing something? You just need to go one more up like import MyMixin from '../../mixins/MyMixins.js'
Upvotes: 2