Open asyrafduyshart opened 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'],
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:
My Plugins `import Vue from 'vue' import VS2 from 'vue-script2'
Vue.use(VS2) ` This is only happen when integrate with Firebase SSR,
Thanks
Hi @asyrafduyshart Were you able to solve this problem? I am facing the same issue.
+1
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:
My Plugins `import Vue from 'vue' import VS2 from 'vue-script2'
Vue.use(VS2) ` This is only happen when integrate with Firebase SSR,
Thanks