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
All bundled files including html, css, main.js (bundle) and images are in public folder. When public folder is served to Firebase, the index.js code that is injected in the main.js bundle does not run. It runs when using webpack dev server. The following error is thrown but does not seem to affect the content being served:
Cannot read properties of undefined (reading 'getChunkConditionMap')
Other bundled files including style.css, index.html, and functions imported into index.js run fine. The only issue is with the functions called in index.js, such as a simple console.log(). None of it seems to execute when hosted with anything outside of Webpack dev server. The error that's thrown is
caught (in promise) TypeError: c[e] is not a function
at l (main.49f6f6f82e9be0cd.js:2:39603)
at main.49f6f6f82e9be0cd.js:2:39409
at l.a (main.49f6f6f82e9be0cd.js:2:40104)
at 131 (main.49f6f6f82e9be0cd.js:2:39284)
at l (main.49f6f6f82e9be0cd.js:2:39603)
at main.49f6f6f82e9be0cd.js:2:42815
at main.49f6f6f82e9be0cd.js:2:42823
Looking through the generated main.js bundle served to the browser , this is where the error is:
` ,
131: (e,t,r)=>{
"use strict";
r.a(e, (async(e,t)=>{
try {
r(196);
var n = r(209)
, o = (r(287),
r(655))
, i = r(437)
, s = r(937)
, a = r(378)
, c = (r(702),
r(777),
r(365),
r(463),
r(878),
r(125),
e([n, o, i, s, a]));
[n,o,i,s,a] = c.then ? (await c)() : c,
console.log("hi"),
t()
} catch (e) {
t(e)
}
}
))
}
}, u = {};
function l(e) {
var t = u[e];
if (void 0 !== t)
return t.exports;
var r = u[e] = {
exports: {}
};
return c[e](r, r.exports, l),
r.exports
}`
I'm using HTMLWebpackPlugin and miniCSSExtractPlugin
All bundled files including html, css, main.js (bundle) and images are in public folder. When public folder is served to Firebase, the index.js code that is injected in the main.js bundle does not run. It runs when using webpack dev server. The following error is thrown but does not seem to affect the content being served:
Other bundled files including style.css, index.html, and functions imported into index.js run fine. The only issue is with the functions called in index.js, such as a simple console.log(). None of it seems to execute when hosted with anything outside of Webpack dev server. The error that's thrown is
Looking through the generated main.js bundle served to the browser , this is where the error is:
I'm using HTMLWebpackPlugin and miniCSSExtractPlugin
Config
Copy the relevant section from
webpack.config.js
:Link to Repo
The text was updated successfully, but these errors were encountered: