-
Notifications
You must be signed in to change notification settings - Fork 505
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
gridsome build error #569
Comments
@nothinghalosix were you able to resolve this issue? I cannot build this with Gridsome |
try this in your script
|
Thanks for that, I actually solved it by setting a client only condition. added as plugin in main.js if (process.isClient) {
Vue.use(require("vue-carousel").default);
} in template file <ClientOnly>
<carousel>
<slide>slide 1</slide>
<carousel>
</ClientOnly> |
Registering as a plugin did not work for me, but registering individual components in main.js fixed the builds for me: if (process.isClient) {
Vue.component('Carousel', require('vue-carousel').Carousel)
Vue.component('Slide', require('vue-carousel').Slide)
} In the last few days, my Gridsome builds started erroring out. I was registering per-component earlier as @nothinghalosix shared. I do not know what the difference is with registering in main.js with |
(node:99081) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '__esModule' of undefined
The text was updated successfully, but these errors were encountered: