Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wahibAbdou opened this issue Apr 18, 2023 · 4 comments

Comments

@wahibAbdou
Copy link

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" } }

Copy link
Member

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

@wahibAbdou
Copy link
Author

wahibAbdou commented Apr 18, 2023 via email

@danielroe
Copy link
Member

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

@gabfiocchi
Copy link

Add the node engine on package.json

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

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants