You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Webpack default entry issue: webpackConfig.entry.main.unshift is not a function. #56
There is a statement inside of webpack dev middleware ts: webpackConfig.entry['main'].unshift('webpack-hot-middleware/client');
Beside assuming that we have default main entry (which is not really good, but there is already TODO here), this allso assume that entry point is an array. Webpack is allow to you have this entry as a string.
Webpack ng2 starter as example have following config: entry: { 'polyfills': './src/polyfills.ts', 'vendor': './src/vendor.ts', 'main': './src/main.browser.ts' },
In this scenario you will have error:
webpackConfig.entry.main.unshift is not a function.
Activity
Fix Webpack default entry issue: webpackConfig.entry.main.unshift is …
Merge pull request #57 from laskoviymishka/unshift-issue
vladoros commentedon Jul 5, 2016
Has this fix been released?
laskoviymishka commentedon Jul 5, 2016
I think so, do you face this issue?
vladoros commentedon Jul 5, 2016
Yes, I cleaned up node_modules & typings seems like there was an issue with the module I was integrating with (ng2-admin).
Thanks.
laskoviymishka commentedon Jul 6, 2016
Can you please file separate issue with whole stack trace, and your we pack configs