Using with babel-pollyfill #867

Closed
opened 2025-08-09 17:17:58 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @phrazed on 3/30/2017

Hi, I'm trying to use babel-pollyfill with the React-Redux template. As per the instructions, I've added babel-pollyfill to the entry value of the webpack-config.js. However when I try to compile the solution I get this error:

Exception: Call to Node module failed with error: Error: To use HotModuleReplacement, your webpack config must specify an 'entry' value as a key-value object (e.g., "entry: { main: 'ClientApp/boot-client.ts' }")
at attachWebpackDevMiddleware

Is it impossible to use an entry like this?

entry: [ "babel-polyfill", { 'entry': './ClientApp/boot-client.tsx' } ],

Sorry if this isn't the right repo. I'm not sure if its here or in the webpack repo, though I haven't had this problem before.

https://babeljs.io/docs/usage/polyfill/

*Originally created by @phrazed on 3/30/2017* Hi, I'm trying to use babel-pollyfill with the React-Redux template. As per the instructions, I've added babel-pollyfill to the entry value of the webpack-config.js. However when I try to compile the solution I get this error: Exception: Call to Node module failed with error: Error: To use HotModuleReplacement, your webpack config must specify an 'entry' value as a key-value object (e.g., "entry: { main: 'ClientApp/boot-client.ts' }") at attachWebpackDevMiddleware Is it impossible to use an entry like this? entry: [ "babel-polyfill", { 'entry': './ClientApp/boot-client.tsx' } ], Sorry if this isn't the right repo. I'm not sure if its here or in the webpack repo, though I haven't had this problem before. https://babeljs.io/docs/usage/polyfill/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#867
No description provided.