Module not found: Error: Can't resolve 'babel-polyfill' in 'D:\JAVA NOTES\JavaScript\Udemy JavaScript Course\Module 1\project\Forkify' @ multi (webpack)-dev-server/client?http://localhost:8080 babel-polyfill ./src/js/index.js main[1] code example
Example 1: Module not found: Error: Can't resolve 'core-js/modules/es6.object.create
solution install core-js@2.6.5
Example 2: Module not found: Error: Can't resolve 'core-js/modules/es6.object.create
require('@babel/register')({
extends: './.babelrc',
ignore: [/node_modules/],
extensions: ['.js', '.jsx', 'ts', '.tsx'],
});
require('core-js/es5');
require('core-js/es6');
require('core-js/library');
require('core-js/stage/0');
require('regenerator-runtime/runtime');