ohcnetwork / life

Verified Crowd-Sourced Emergency Services Directory
https://life.coronasafe.network/
82 stars 56 forks source link

issue while starting dev #78

Closed sharunspi closed 3 years ago

sharunspi commented 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.

  1. node 10.19.0
  2. npm 7.11.1
  3. OS : ubuntu
Deep-Codes commented 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.

  1. node 10.19.0
  2. npm 7.11.1
  3. OS : ubuntu

https://github.com/sharunspi/life.git

I cloned your repo wasn't able to reproduce it.

Screenshot 2021-04-25 at 2 25 59 PM
sharunspi commented 3 years ago

This is the error code that i am getting Screenshot from 2021-04-25 14-56-04

bodhish commented 3 years ago

Try this.

git pull
npm i
npm run dev
sharunspi commented 3 years ago

Issue solved by updating node to latest. node 10.19.0 --> 14 need to add that in package.json

{
  "engines": {
    "node": ">=12.x"
  }
}