Git Product home page Git Product logo

php-react-setup's People

Contributors

davisonpro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-react-setup's Issues

Enable hot reloading of changes while in development

Hello,

first of all, thank you for your repo. It would be great if there would be the possibility to automatically rebuild JSX and CSS files while in development mode. How can I enable such a feature?

I tried using your npm run-script watch command, it does see the changes from the command line, e.g.:

Hash: 0b3abf544b18dd390029
Version: webpack 4.29.6
Time: 293ms
Built at: 03/28/2019 4:03:49 PM
           Asset       Size  Chunks             Chunk Names
  ../css/app.css  229 bytes    main  [emitted]  main
Header.bundle.js    3.8 KiB  Header  [emitted]  Header
 + 1 hidden asset
Entrypoint main = main.bundle.js ../css/app.css
[./dev/Header.jsx] 2.68 KiB {Header} {} [built]
    + 21 hidden modules

But as soon as I reload the page, the React components do not render and I get the following message in the console:

Error: Loading chunk 0 failed.
(missing: http://localhost/my-app/react/app/assets/bundle/Header.bundle.js)

Uncaught (in promise) Error: Loading chunk 0 failed.
(missing: http://localhost/my-app/react/app/assets/bundle/Header.bundle.js)

Any idea on how to fix this?

Thank you for your attention.

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.