Code Monkey home page Code Monkey logo

Comments (4)

alexnm avatar alexnm commented on September 27, 2024

sorry I missed this notification for some reason.

are you going to http://localhost:2048? I tested the demo again and it works well. Give me more details maybe to try to figure out the problem

from react-ssr.

foxmicha avatar foxmicha commented on September 27, 2024

I can confirm this also doesn't work for me. It appears that the server.js is never getting ran at all. A console log placed within that file does not executed.

Is there some global installs we are perhaps missing?

EDIT: I was able to get the server started by running node index.js instead of the webpack / nodemon commands found in the npm run dev script.

EDIT EDIT: Following the second StackOverflow answer I was able to separate out the watch operations and run them concurrently. It seems like on Windows they are both blocking operations. The webpack --watch never returns so the script never executes nodemon index.js

My package.json now looks like this:

"dev": "npm-run-all --parallel watch:server watch:client",
"watch:client": "webpack --watch --progress",
"watch:server": "nodemon index.js",

from react-ssr.

alexnm avatar alexnm commented on September 27, 2024

A true, on windows it's a bit different. Have you tried running them with && instead of &?

I pushed two separate tasks for running the client and the server: npm run server and npm run client

Please do a PR if you want with the npm-run-all package.

from react-ssr.

foxmicha avatar foxmicha commented on September 27, 2024

Changing the ampersand did not produce any changes.

I've created a PR for the changes that got it working on my machine. You might consider re-creating the package-lock.json. My local node version can only create npm-shrinkwrap.json files.

from react-ssr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.