Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New project fails in @next with --typescript #6839

Closed
jleclanche opened this issue Apr 18, 2019 · 1 comment
Closed

New project fails in @next with --typescript #6839

jleclanche opened this issue Apr 18, 2019 · 1 comment

Comments

@jleclanche
Copy link
Contributor

Reproduce:

$ yarn global add create-react-app@next
$ create-react-app foo --typescript --scripts-version=next

<snip>

Done in 3.82s.
internal/modules/cjs/loader.js:670
    throw err;
    ^

Error: Cannot find module 'next/scripts/init.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
    at Function.Module._load (internal/modules/cjs/loader.js:591:27)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at [eval]:2:20
    at Script.runInThisContext (vm.js:124:20)
    at Object.runInThisContext (vm.js:314:38)
    at Object.<anonymous> ([eval]-wrapper:9:26)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at evalScript (internal/process/execution.js:60:25)

Aborting installation.
  node  has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting generated file... yarn.lock
Deleting foo/ from /home/adys/tmp
Done.

@ianschmitz
Copy link
Contributor

Please follow the directions at #6475 to install the latest alpha (it sounds like that's what you're trying to do). There's no need to install create-react-app globally.

@lock lock bot locked and limited conversation to collaborators Apr 23, 2019
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