Giter Site home page Giter Site logo

Comments (13)

leiming avatar leiming commented on May 2, 2024 4

Thanks for replying.

The full code is https://github.com/leiming/pcgame-react-boilerplate/tree/fix-ie

Just use https://github.com/gaearon/react-transform-boilerplate

and install eventsource-polyfill

npm install eventsource-polyfill --save-dev

and add eventsource-polyfill.js to entries:

// webpack.config.dev.js
// ...
module.exports = {
  devtool: 'eval',
  entry: [
    'eventsource-polyfill',
    'webpack-hot-middleware/client',
    './src/index'
  ],
// ...

and the error as follow:

** 日志: polyfill-eventsource added missing EventSource to window **

errpr

It is running in the virtual machine of Parallels that use IE 8 in windows 7.

from webpack-hot-middleware.

mtiger95 avatar mtiger95 commented on May 2, 2024 4

I used the 'babel-polyfill' plugin, it also can't work in IE11 , but when 'npm run build',open the local index files ,it works, How strange ?

from webpack-hot-middleware.

glenjamin avatar glenjamin commented on May 2, 2024

I don't have easy access to IE, so I won't be able to provide a full working example.

If you have any specific errors then feel free to post more detail

from webpack-hot-middleware.

glenjamin avatar glenjamin commented on May 2, 2024

If anyone is able to contribute an example including the polyfill for IE, please do.

from webpack-hot-middleware.

cl1ck avatar cl1ck commented on May 2, 2024

Just tested in IE11. The modified webpack config provided by @leiming is working perfectly.
** 日志: polyfill-eventsource added missing EventSource to window ** is not an error, just an that the polyfill was added successfully.

@leiming: I suspect the errors lie somewhere else in your application.

from webpack-hot-middleware.

leiming avatar leiming commented on May 2, 2024

@cl1ck , This code is work with IE 11, but IE 8 in Win7.

from webpack-hot-middleware.

wuhw avatar wuhw commented on May 2, 2024

@leiming I just add the 'event-source-polyfill' to the entry chunk and it works

from webpack-hot-middleware.

wuhw avatar wuhw commented on May 2, 2024

use the npm package named 'event-source-polyfill' and add this to entry chunk without any loader or plugin.
module.exports = {
devtool: 'eval',
entry: [
'event-source-polyfill',
'webpack-hot-middleware/client',
'./src/index'
]
}
then it works for me.
and I check the eventsource-polyfill's source code and I find some error in it. It could'not exports any thing to the window so that you got the error above.

from webpack-hot-middleware.

johnjjung avatar johnjjung commented on May 2, 2024

this is ready for review

from webpack-hot-middleware.

glenjamin avatar glenjamin commented on May 2, 2024

What is?

from webpack-hot-middleware.

johnjjung avatar johnjjung commented on May 2, 2024

Lol whoops sorry wrong Issue

from webpack-hot-middleware.

SuLiang2016 avatar SuLiang2016 commented on May 2, 2024

but fo me,it doesn't work; I use the 'event-source-polyfill' as the example , I don't know where is wrong?

from webpack-hot-middleware.

florida0723 avatar florida0723 commented on May 2, 2024

fuck IE

from webpack-hot-middleware.

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.