davidroyer / nuxt-ssr-firebase

Nuxt.js Universal App with SSR via Firebase Functions and Firebase Hosting
https://nuxtssrfire.firebaseapp.com/
278 stars 62 forks source link

Cannot load Plugins when using buildDir #14

Open asyrafduyshart opened 6 years ago

asyrafduyshart commented 6 years ago

My nuxt.config snippet build: { publicPath: "/assets/", extractCSS: true, /* ** Run ESLint on save */ extend(config, ctx) { if (ctx.isDev && ctx.isClient) { // config.module.rules.push({ // enforce: 'pre', // test: /\.(js|vue)$/, // loader: 'eslint-loader', // exclude: /(node_modules)/ // }) } } }, buildDir: "../prod/server/nuxt", plugins: ['~/plugins/script'],

It's work normally when using not adding buildDir, but we cannot deploy to firebase, But when adding it will result this error: screenshot from 2018-08-16 18-17-07

My Plugins `import Vue from 'vue' import VS2 from 'vue-script2'

Vue.use(VS2) ` This is only happen when integrate with Firebase SSR,

Thanks

WeAspireDev commented 6 years ago

Hi @asyrafduyshart Were you able to solve this problem? I am facing the same issue.

gofreddo commented 5 years ago

+1

Omintoblake commented 5 years ago

+1