Giter VIP home page Giter VIP logo

Comments (3)

will-hart avatar will-hart commented on May 17, 2024 1

I'm getting this on Windows as well because of the absolute import paths using backslashes. You can get it to run temporarily by changing

'D:\projects\react-static\constraintsolver\src\containers\404'

to

'D:/projects/react-static/constraintsolver/src/containers/404'

However as soon as react-static rebuilds it will revert to the backslash paths.

from react-static.

alexandrechevalier avatar alexandrechevalier commented on May 17, 2024 1

As this line generates paths with backslahes :
https://github.com/nozzle/react-static/blob/dff7e87e9d8d6a270fef9401337e29f3de507b7c/src/static.js#L283

While waiting for a fix on Windows, a temporary solution would be to replace backslashes by slashes in node_modules/react-static/dist/static.js, line 501 :
Add a .replace(/\\/g, "/") at the end of _path2.default.resolve(_paths.ROOT, template)

from react-static.

tannerlinsley avatar tannerlinsley commented on May 17, 2024 1

This should be resolved in the latest release by using path.join to create a relative path rather than an absolute one.

from react-static.

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.