Closed sharunspi closed 3 years ago
> [PWA] Compile server error - ./node_modules/next/dist/compiled/css-loader/cjs.js??ruleSet[1].rules[2].oneOf[6].use[1]!./node_modules/next/dist/compiled/postcss-loader/cjs.js??ruleSet[1].rules[2].oneOf[6].use[2]!./styles/globals.css TypeError: Object.entries(...).flatMap is not a function at Array.forEach (<anonymous>)
Showing this error while staring the development server . this may not be a bug but I am facing this when I start development server.
- node 10.19.0
- npm 7.11.1
- OS : ubuntu
https://github.com/sharunspi/life.git
I cloned your repo wasn't able to reproduce it.
This is the error code that i am getting
Try this.
git pull
npm i
npm run dev
Issue solved by updating node to latest. node 10.19.0 --> 14
need to add that in package.json
{
"engines": {
"node": ">=12.x"
}
}
Showing this error while staring the development server . this may not be a bug but I am facing this when I start development server.