Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Getting error when starting the app using npm start command #5

Open
shajiahmed opened this issue Jun 27, 2021 · 2 comments
Open

Getting error when starting the app using npm start command #5

shajiahmed opened this issue Jun 27, 2021 · 2 comments

Comments

@shajiahmed
Copy link

shajiahmed commented Jun 27, 2021

As per the documentation, opensea recommends switching to Node.js version 8.11 to make sure common crypto dependencies work. when I use this, react app doesn't work, it requires 10.0+ I get the following error

react-scripts start

/mydrive/opensea-js/ships-log/node_modules/terser-webpack-plugin/node_modules/p-limit/index.js:29
} catch {}
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)

when I use latest version of node v16.4.0, I get following error
[email protected] start

react-scripts start

/mydrive/opensea-js/ships-log/node_modules/mini-css-extract-plugin/dist/CssModule.js:20
class CssModule extends _webpack.default.Module {
^

TypeError: Class extends value undefined is not a constructor or null
at Ob

@shajiahmed shajiahmed changed the title Getting error when starting the app Getting error when starting the app using npm start command Jun 27, 2021
@onlit
Copy link

onlit commented Jun 27, 2021

They said to use Node.js version 8.11 or higher. So the latest node will work without any errors.

@shajiahmed
Copy link
Author

I see lot of error when I switch to v 16.4.0, attaching log files in detail
test.txt

npm ERR! npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! npm ERR! gyp ERR! System Darwin 20.5.0
npm ERR! npm ERR! gyp ERR! command "/Users/mohammed.ahmed/.nvm/versions/node/v16.4.0/bin/node" "/Users/mohammed.ahmed/.nvm/versions/node/v16.4.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! npm ERR! gyp ERR! cwd /Users/mohammed.ahmed/.npm/_cacache/tmp/git-clone-bf267b38/node_modules/sha3
npm ERR! npm ERR! gyp ERR! node -v v16.4.0
npm ERR! npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! npm ERR! gyp ERR! not ok

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants