deno icon indicating copy to clipboard operation
deno copied to clipboard

create-react-app does not run correctly

Open ry opened this issue 2 years ago • 0 comments

# deno run -A npm:create-react-app cra-repo

Creating a new React app in /private/tmp/foobar/cra-repo.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...


added 1417 packages in 1m

231 packages are looking for funding
  run `npm fund` for details
error: Uncaught ReferenceError: require is not defined
        const init = require('react-scripts/scripts/init.js');
                     ^
    at file:///private/tmp/foobar/cra-repo/$deno$eval.js:2:22

Aborting installation.
  node  has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Done.

# ls cra-repo/
package-lock.json

ry avatar Feb 06 '23 16:02 ry