-
Notifications
You must be signed in to change notification settings - Fork 55
vue-cli import error #19
Comments
The problem come from your
import VueIntro from 'vue-introjs/dist/index.min';
module: {
rules: [{
test: /\.js$/,
include: [path.resolve(__dirname, 'node_modules/vue-introjs')],
loader: 'babel-loader'
}]
}
resolve: {
alias: {
'vue-introjs': 'vue-introjs/dist/index.min.js'
}
} |
You forgot to add import VueIntro from 'vue-introjs';
Vue.use(VueIntro); |
That's in test/unit/setup.js and then I get the import error as mentioned in https://forums.manning.com/posts/list/0/43203.page#p121739 |
I am not sure if your error relates to this package. |
jestjs/jest#3202 as mentioned inthe latter: https://facebook.github.io/jest/docs/en/configuration.html#testpathignorepatterns-array-string |
@ghenry, @keepresolve i've published a new release which users ES5 version by default. |
Upgraded. I now get, with no changes: ReferenceError: introJs is not defined |
|
@ghenry , introJs is an external depency. Include it in your build before injecting the plugin. Refer docs. |
@alex-oleshkevich |
vue-cli import VueIntro from 'vue-introJs'; Vue.use(VueIntro);
// error Uncaught SyntaxError: Unexpected token ( autostart.js?9e2a:29
The text was updated successfully, but these errors were encountered: