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

undefined error message while create-razzle-app #1169

Closed
sujishpradeep opened this issue Dec 7, 2019 · 10 comments
Closed

undefined error message while create-razzle-app #1169

sujishpradeep opened this issue Dec 7, 2019 · 10 comments
Labels

Comments

@sujishpradeep
Copy link

sujishpradeep commented Dec 7, 2019

I have installed Razzle(v3.0.0). create-react-app is errors out while installing, with an undefined message.

Node version: v10.16.0

Creating my-razzle-app...

Success! Created files for "my-razzle-app" razzle app

Installing npm modules:
react
react-dom
react-router-dom
razzle
express

> Error! Failed to install react, react-dom, react-router-dom, razzle, express, try again.
undefined

@AjayPoshak
Copy link

In my case, I'm getting this log

yarn run v1.19.1
$ razzle start
 WAIT  Compiling...


✔ Client
  Compiled successfully in 3.37s

✔ Server
  Compiled successfully in 341.05ms

ℹ 「wds」: Project is running at http://localhost:3001/
ℹ 「wds」: webpack output is served from undefined
ℹ 「wds」: Content not from webpack is served from /Users/ajayposhak/Projects/my-app
ℹ 「wds」: 404s will fallback to /index.html
Warning: Please use `require("react-router-dom").Route` instead of `require("react-router-dom/Route")`. Support for the latter will be removed in the next major release.
Warning: Please use `require("react-router-dom").Switch` instead of `require("react-router-dom/Switch")`. Support for the latter will be removed in the next major release.
✅  Server-side HMR Enabled!
🚀 started

But when I navigate to http://localhost:3001/, its showing a blank page, with Error as document title.

@jaredpalmer
Copy link
Owner

Do you have something running on port 3000?

@AjayPoshak
Copy link

Its showing the correct page, when I open http://localhost:3000/. But on terminal output, it asks to open http://localhost:3001/ which has this error Cannot GET /.

@jeco123
Copy link

jeco123 commented Feb 4, 2020

I got the same message :-)

@Nilomiranda
Copy link

I've got the same thing. Any update about this?

@nimaa77 nimaa77 added the bug label Mar 17, 2020
@vferdiansyah
Copy link
Contributor

@AjayPoshak see #1182 (comment)

@fivethreeo
Copy link
Collaborator

Should make it more clear in the console output. Just dig into razzle/scripts/start.js, but the title of this issue is unrelated.

@fivethreeo
Copy link
Collaborator

I have been looking into create-razzle-app and have not encountered this (undefined) error when running create-razzle-app. But it could happen with bad connectivity and timeouts? Which example is this with, if any. Which os? Using yarn or npm?

@fivethreeo
Copy link
Collaborator

Needs more info, reopen if you have some :)

@jeco123
Copy link

jeco123 commented May 9, 2020 via email

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

No branches or pull requests

8 participants