nuxt-ssr-firebase icon indicating copy to clipboard operation
nuxt-ssr-firebase copied to clipboard

Cannot load Plugins when using buildDir

Open asyrafduyshart opened this issue 7 years ago • 3 comments

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

asyrafduyshart avatar Aug 16 '18 11:08 asyrafduyshart

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

WeAspireDev avatar Sep 12 '18 06:09 WeAspireDev

+1

gofreddo avatar Dec 04 '18 01:12 gofreddo

+1

Omintoblake avatar Dec 12 '18 07:12 Omintoblake