sql-js / react-sqljs-demo

A demonstration showing how to use sql.js with create-react-app
https://react-sqljs-demo.ophir.dev/
MIT License
104 stars 33 forks source link

node:internal/modules/cjs/loader:940 Error: Cannot find module 'react-scripts/package.json' #5

Closed Jansora closed 3 years ago

Jansora commented 3 years ago
  1. download source code git clone https://github.com/sql-js/react-sqljs-demo.git
  2. cd https://github.com/sql-js/react-sqljs-demo.git
  3. install dependencies yarn
  4. yarn start. A error has reached.
    
    ➜  react-sqljs-demo git:(master) ✗ yarn start
    yarn run v1.22.10
    $ craco start
    node:internal/modules/cjs/loader:940
    const err = new Error(message);
              ^

Error: Cannot find module 'react-scripts/package.json' Require stack:

Jansora commented 3 years ago

MacOS 11.0.1 Chrome 93.0.4577.63

Jansora commented 3 years ago

I has solved it by adding dependency react-scripts

  1. yarn add react-scripts
  2. yarn start