Giter Site home page Giter Site logo

Comments (15)

gaearon avatar gaearon commented on April 19, 2024 1

I have a proof of concept of this working: https://twitter.com/dan_abramov/status/773799004878565376.
I’d like #419 to land first, and then I can add this.

from create-react-app.

gaearon avatar gaearon commented on April 19, 2024

I agree we should print the terminal output in an overlay if the compilation fails.

@glenjamin worked on https://github.com/glenjamin/webpack-hot-middleware that does this, but IIRC it had some other problems.

So I’d like to see this as a feature, but probably implemented as a custom client instead of the one that ships with WebpackDevServer.

from create-react-app.

glenjamin avatar glenjamin commented on April 19, 2024

I'd happily accept any PRs / specific fixes for problems in hot-middleware, it already has a custom HMR client and is widely used.

You are of course free to port/fork, but it'd be good to share if possible.

from create-react-app.

gaearon avatar gaearon commented on April 19, 2024

Could you make it not depend on polyfill in IE? As I recall this was the biggest issue.

from create-react-app.

gaearon avatar gaearon commented on April 19, 2024

(Not saying it’s the only one tho. If you could make a PR porting from WDS to the middleware it would be easier to find other issues.)

from create-react-app.

goshacmd avatar goshacmd commented on April 19, 2024

One thing I love about Brunch is that in case of error it will show a system notification, no config required. :w and seeing an error notification, it's easier to go to another terminal tab and see the stack trace, than to cmd+tab to the browser after saving a few files only to then spot an error.

from create-react-app.

gaearon avatar gaearon commented on April 19, 2024

Sounds interesting. Perhaps we should do that. Want to take a stab at PR?

from create-react-app.

goshacmd avatar goshacmd commented on April 19, 2024

There even seems to be a webpack plugin for that already https://www.npmjs.com/package/webpack-error-notification

from create-react-app.

goshacmd avatar goshacmd commented on April 19, 2024

Which doesn't work on Windows, though.

Sure, I'll take a stab at it tomorrow!

from create-react-app.

glenjamin avatar glenjamin commented on April 19, 2024

The options for this are either plain WebSocket, which is IE10+ or a lib that magically deals with fallbacks - which would be weightier.

Any thoughts on what is preferable?

On 22 Jul 2016, at 20:31, Dan Abramov [email protected] wrote:

Could you make it not depend on polyfill in IE? As I recall this was the biggest issue.

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

from create-react-app.

gaearon avatar gaearon commented on April 19, 2024

What was the motivation behind not using WebSockets?

from create-react-app.

glenjamin avatar glenjamin commented on April 19, 2024

Ironically I thought it'd be simpler & more reliable!

On 22 Jul 2016, at 23:17, Dan Abramov [email protected] wrote:

What was the motivation behind not using WebSockets?

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

from create-react-app.

goshacmd avatar goshacmd commented on April 19, 2024

(Submitted #131 to add notifications)

from create-react-app.

vjeux avatar vjeux commented on April 19, 2024

#419 landed :)

from create-react-app.

gaearon avatar gaearon commented on April 19, 2024

I was just looking into it. πŸ˜„

from create-react-app.

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.