Console warning generated for alias import being used as a mixin
See original GitHub issueWhen importing via an alias e.g. import emitClick from '@/mixins/emitClick'; and the import is to be used in the mixins array a warning will be generated in the console:
Neither '@/mixins/emitClick.vue' nor '@/mixins/emitClick.js(x)' or '@/mixins/emitClick/index.js(x)' or '@/mixins/emitClick/index.ts(x)' could be found in '/storybook-vue/src'
The file does exist and the mixin works as expected when using the component.
To reproduce Import a mixin via an alias then add it to the mixins array
demo link with the issue: https://github.com/steriley/storybook-vue-mixin-alias
Expected behavior No warning should be generated
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
unable to use Mixins in vue with typescript - Stack Overflow
There is a reason that I am using importing Vue using import Vue from 'vue'; , it is mainly because some IDE's are...
Read more >Features | Vite
Vite is pre-configured to support CSS @import inlining via postcss-import . Vite aliases are also respected for CSS @import . In addition, all...
Read more >Common mistakes to avoid while working with Vue.js
The first thing to do in order to use Vue.js is to import it. If you follow the official guide and use an...
Read more >nunjucks templating docs
This is an overview of the templating features available in Nunjucks. ... You can store the template to inherit in a variable and...
Read more >LiveScript - a language which compiles to JavaScript
If you use this, your LiveScript scripts have to be placed after the included ... << for all properties. import and import all...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I am looking into it.
@elevatebart Do you have any idea what’s going on?