Code Monkey home page Code Monkey logo

Comments (9)

javivelasco avatar javivelasco commented on August 26, 2024

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.

AndersNS avatar AndersNS commented on August 26, 2024

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.

jonasem avatar jonasem commented on August 26, 2024

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.

AndersNS avatar AndersNS commented on August 26, 2024

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.

javivelasco avatar javivelasco commented on August 26, 2024

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.

AndersNS avatar AndersNS commented on August 26, 2024

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.

javivelasco avatar javivelasco commented on August 26, 2024

+1

from react-toolbox-example.

javivelasco avatar javivelasco commented on August 26, 2024

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.

 avatar commented on August 26, 2024

Fixed with cross-env

from react-toolbox-example.

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.