Open davestewart opened 8 years ago
I think you might need this. https://github.com/vuejs/vueify
Hello, yep, that is in my gulp pipeline, and the .vue files in my app folder compile fine.
Do you think there's another reason why it's not working for me?
Same problem, probably because browserify isn't expecting a vue component, if you don't include the .vue extension it expects pure javascript and bugs out.
I solved it by delving into the node_modules and placing the modal.vue component inside a global components folder inside my project
require('../../../common-components/modal.vue')
It's a hotfix though, not really a solution
Add this inside package.json
"browserify": { "transform": [ [ "babelify", { "presets": [ "es2015" ] } ], [ "vueify" ] ] },
Thank you @franvera ! This worked for me
@franvera - inside the package.json for my project, or vue-bootstrap-modal ?
@davestewart for vue-bootstrap-modal. It has been merged with pull request #5 now.
When requiring the modal after installing via npm, I get the following error.
It seems that this is the default behaviour, but can be overridden:
https://www.npmjs.com/package/babelify#faq
is the solution otherwise to just include the file in your own, local, imports?
By the way - nice module, thanks!