Comments (9)
Considering you already investigated the issue, do you know if we can do something to fix it in toolbox project? Or should it be fixed at webpack?
from react-toolbox-example.
I have similar projects that work with webpack so it should be possible to fix in the toolbox project. The material-ui webpack sample works fine. :)
from react-toolbox-example.
Check out line 19 in webpack config
resolve: {
extensions: ['', '.jsx', '.scss', '.js', '.json'],
modulesDirectories: [
'./node_modules',
path.resolve(__dirname, './node_modules')
]
},
The '' entry certainly makes my webpack stoic. Removing it makes webpack start bundling at least.
from react-toolbox-example.
If I change the start command to this "start": "set UV_THREADPOOL_SIZE=100 & node ./server",
it works on Windows for me. I see there is process.env.UV_THREADPOOL_SIZE = 100;
at the top of server.js but that doens't work for Windows then I assume?
from react-toolbox-example.
I think so @AndersNS. The UV_THREADPOOL_SIZE
is necessary because to keep the project modular we need a lot of SASS files to be compiled. There is a issue in node_sass
that stops compiling if the threadpool is not incremented.
I guess that maybe is not possible to keep a working configuration for both OS?
Thanks both of you guys! :)
from react-toolbox-example.
I got it working in a different project properly earlier today. So I did some more investigation, because the webpack configs were very similar. What I found is it works for me If I remove the process.env.UV_THREADPOOL_SIZE = 100;
from line 1 in server.js. If *NIX machines needs this to be set at something larger than the default (4) then keeping it working on both *NIX and Windows might be difficult.
from react-toolbox-example.
+1
from react-toolbox-example.
I mean... this setting shouldn't depend on your system. I would like somebody to send a PR with a working approach for windows and still working on UNIX machines. But! the setting should be implicit for now so people wouldn't have any problems running the project.
from react-toolbox-example.
Fixed with cross-env
from react-toolbox-example.
Related Issues (20)
- Can't get to work with react-slingshot
- how to solve this issue?? HOT 1
- Problems with rendering Dialog component HOT 1
- Tried to run it and it doesn't work HOT 1
- Cannot find react-style-proptype modules HOT 2
- Add component unit tests using Jest
- failed start script
- Not able to find output file HOT 1
- Red box of death.
- npm install with Node.js v6.10.2 (npm3 v3.10.10) HOT 1
- Compiling slow
- this example don't work in IE 11
- How do I add an images folder to the build?
- External postcss config
- npm start, webpack build memory usage exceeds 500MB
- Stylesheet seems to be loaded after the bundle?
- Tabs not showing on react-toolbox-example HOT 1
- SyntaxError cropped up
- r
- Install fails - won't compile -- Is this project dead? HOT 2
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-toolbox-example.