Code Monkey home page Code Monkey logo

Comments (6)

clarkdo avatar clarkdo commented on July 29, 2024 1

This is an issue of buildModules, I'll discuss with team and fingure out a fix.

from eslint-plugin-nuxt.

clarkdo avatar clarkdo commented on July 29, 2024

Thanks for the reporting, may I ask if you’re using yarn install —production or NODE_ENV=production when you install?

I think this is an issue from create-nuxt-app, I’ll propose a fix shortly, as a quick fix you can move it to dependencies as you already did or not set production env/flag before install.

from eslint-plugin-nuxt.

Treen11 avatar Treen11 commented on July 29, 2024

Hi, thanks for the answer. Yes i am setting NODE_ENV: 'production' in the environment. I have tryed to set it to 'development' just to try it out and the problem was still there. I am using the recommended app.yaml file from nuxt documentation, which includes the NODE_ENV: 'production' variable: https://nuxtjs.org/faq/appengine-deployment/

from eslint-plugin-nuxt.

Treen11 avatar Treen11 commented on July 29, 2024

Should i move this issue to the create-nuxt-app repo?

from eslint-plugin-nuxt.

clarkdo avatar clarkdo commented on July 29, 2024

@Treen11 development should be used before you install the dependencies (like: yarn install or npm install) and build nuxt app, not at gae runtime.

from eslint-plugin-nuxt.

Ornhoj avatar Ornhoj commented on July 29, 2024

I'm having the same issue with [email protected] - it seems like buildModules are included in the request when initiating in production mode.

@nuxtjs/eslint is a devDependency and i have the module in my buildModules section

This is my install script cross-env NODE_ENV=production yarn install

Update
I got around this problem with the following snippet in server/index.js:

if (!config.dev) {
	config.buildModules = [];
}

from eslint-plugin-nuxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.