Comments (4)
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.
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.
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.
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)
- How to use absolute path in server.js?
- Why use port 2048 HOT 2
- npm audit not working HOT 3
- can i use this with ie9? HOT 1
- Integrating the code with Css HOT 4
- how to keep the redux state in line with persisted redux state in the client HOT 1
- How to add styles? HOT 1
- how do we pass the url params to serverFetch function HOT 3
- how can get url params HOT 1
- gyp ERR! configure error HOT 1
- Data doesn't keep on localstorage and after refresh css not woking. HOT 2
- Question HOT 2
- Node gyp problem ( HOT 1
- ๆไปค้่ฏฏ HOT 1
- How to pack and go online
- how to access client-side rendering page HOT 8
- How do I integrate this with react-hot-loader? HOT 2
- cannot run in the browser HOT 5
- Can't run dist app.bundle.js HOT 2
- Integrate with css file HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-ssr.