nuxt / vercel-builder

Vercel Builder for Nuxt
MIT License
646 stars 75 forks source link

Deploy Nuxt 2 app, error postcss-nesting@8.0.1: The engine "node" is incompatible with this module. #804

Closed wahibAbdou closed 1 year ago

wahibAbdou commented 1 year ago

I tried to deploy my nuxt 2 app but I get this error: error postcss-nesting@8.0.1: The engine "node" is incompatible with this module. Expected version "12 - 16". Got "18.13.0"

Screenshot 2023-04-18 at 01 18 11

vercel.json: { "version": 2, "builds": [ { "src": "nuxt.config.js", "use": "@nuxtjs/vercel-builder", "config": {} } ] }

package.json { "name": "wahibworks-agency", "version": "1.0.0", "private": true, "scripts": { "dev": "nuxt", "build": "nuxt build", "start": "nuxt start", "generate": "nuxt generate", "lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .", "lint:prettier": "prettier --check .", "lint": "yarn lint:js && yarn lint:prettier", "lintfix": "prettier --write --list-different . && yarn lint:js --fix" }, "dependencies": { "core-js": "^3.19.3", "hooper": "^0.3.4", "nuxt": "^2.15.8", "nuxt-gsap-module": "^1.7.1", "three": "^0.143.0", "vue": "^2.6.14", "vue-server-renderer": "^2.6.14", "vue-template-compiler": "^2.6.14", "webpack": "^4.46.0" }, "devDependencies": { "@babel/eslint-parser": "^7.16.3", "@nuxtjs/eslint-config": "^8.0.0", "@nuxtjs/eslint-module": "^3.0.2", "@nuxtjs/google-fonts": "^2.0.0", "@nuxtjs/tailwindcss": "^4.2.1", "eslint": "^8.4.1", "eslint-config-prettier": "^8.3.0", "eslint-plugin-nuxt": "^3.1.0", "eslint-plugin-vue": "^8.2.0", "postcss": "^8.4.4", "prettier": "^2.5.1", "pug": "^3.0.2", "pug-plain-loader": "^1.1.0" } }

danielroe commented 1 year ago

That seems like an issue you should raise with postcss-nesting - or have you tried setting your Vercel Node version to v16?

wahibAbdou commented 1 year ago

Yeah I tried changing the version from vercel and in package.json but didn't work

On Tue, Apr 18, 2023, 8:33 AM Daniel Roe @.***> wrote:

That seems like an issue you should raise with postcss-nesting - or have you tried setting your Vercel Node version to v16?

— Reply to this email directly, view it on GitHub https://github.com/nuxt/vercel-builder/issues/804#issuecomment-1512680634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFFQV23CR6VSR3V7WDN5PLXBZGXDANCNFSM6AAAAAAXB5ULME . You are receiving this because you authored the thread.Message ID: @.***>

danielroe commented 1 year ago

What do you mean, it didn't work? Are you following these steps?

gabfiocchi commented 1 year ago

Add the node engine on package.json

"engines": {
    "node": ">=14.0.0 <17.0.0"
  }