ardatan / meteor-webpack

https://medium.com/@ardatan/meteor-with-webpack-in-2018-faster-compilation-better-source-handling-benefit-from-bc5ccc5735ef
MIT License
123 stars 29 forks source link

after runnig react example I get ReferenceError: Package is not defined #26

Closed nikhilgoswami closed 6 years ago

nikhilgoswami commented 6 years ago

Steps to reproduce: go into examples react
run meteor npm install run meteor

ardatan commented 6 years ago

I need more details such as;

nikhilgoswami commented 6 years ago

in browsers console firefox it disappears after few refresh or restart I didn't check on chrome

nikhilgoswami commented 6 years ago

error It seems it only appears on firefox and the error is fixed after few hit on refresh button & pops up unexpectedly any ideas?

ardatan commented 6 years ago

When HMR is enabled, Meteor will load Webpack's client bundle asynchronously; this is a known problem that I'm still working on; the same situation exists in server as well. I recommend you to disable HMR or use chrome until we fix it.

jself commented 6 years ago

I believe that I've actually received this error on chrome with HMR disabled. I removed the HotModuleReplacement plugin, disabled the plugin in babelrc, removed the react-hot-loader from the code, and removed hot:true from the devServer config.

selection_080

jself commented 6 years ago

I think that my error above was actually from trying to use the webpack dev server instead of meteor. While I'm still having issues with meteor, I think that the above was fixed by using "meteor run"

ardatan commented 6 years ago

That's normal, because Meteor loads its bundle independently from Webpack's. I'm closing this issue, then.