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:![screenshot from 2018-08-16 18-17-07](https://user-images.githubusercontent.com/8492663/44205498-cb177c80-a180-11e8-8281-71abb8bbff09.png)
My Plugins `import Vue from 'vue' import VS2 from 'vue-script2'
Vue.use(VS2) ` This is only happen when integrate with Firebase SSR,
Thanks