-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
We are using @react-native-community/cli: "^5.0.1", which has nested dependency on joi lib.
Below version we are using in project
"@react-native-community/cli": "^5.0.1",
"react": "17.0.1",
"react-native": "0.64.4",
"node: : "12.22.6",
"npm":"6.14.15",
After release of joi 17.8.1, we are started getting below error in react-native.
node_modules/@hapi/hoek/lib/deepEqual.js:274 if (!options.skip?.includes(key)) { ^SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (/Users/rahulsolanki/InterMiles/node_modules/joi/lib/trace.js:3:19) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)