question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Console warning generated for alias import being used as a mixin

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
elevatebartcommented, Oct 27, 2020

I am looking into it.

0reactions
leandromatoscommented, Oct 26, 2020

@elevatebart Do you have any idea what’s going on?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found