I am trying to migrate to Webpack 4, but is has been a real pain. After couple of days working on moving Webpack 3 plugins to Webpack 4 native stuff, I got the js
to be rendered fine supposedly, but when I go to my website I got this message on the console:
Uncaught TypeError: (intermediate value)(intermediate value).push is not a function
On:
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["Index"],{
This is my Webpack output
settings:
output: {
filename,
path: path.resolve(__dirname, 'public', 'build', 'js'),
jsonpFunction: 'webpackJsonp', // TODO gotta figure that out
},
What am I doing wrong?