New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module build failed: TypeError: this._init is not a function #23
Comments
I'm seeing the same thing with custom components. |
@bradstewart Are you exporting a constructor created by |
@yyx990803 So I can't quite figure out why the error printed to the console was from |
FWIW, the error referenced in this issue's title is what I was getting simply because I hadn't run It might be worth adding a reminder about actually installing the loader to the README.md, for slow folks like me... 😁 |
@davidrunger was my issue/resolution also. Thanks! For anyone else that needs the list of the peer dependencies:
Or copy/paste version for your convenience:
(Without --save)
|
Removing node_modules and installing it again helped. |
#409 is helped |
vue-strap is a vuecomponent , and i want to use it like this:
require('vue-strap').alert
but it report errors below:
Module build failed: TypeError: this._init is not a function
at Object.Vue (E:\vue\vue-strap1\node_modules\vue-strap\node_modules\vue\src
\vue.js:19:8)
the code in the vue-strap/src/main.js file:
var _AlertVue = require('./Alert.vue');
exports.alert = _AlertVue;
The text was updated successfully, but these errors were encountered: