Issue loading bundle.js #379
phoragroup
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Something is going wrong with the Dojo module loading mechanism, especially around dynamic loading and promises
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the dojo-webpack plugin for the first time so there are probably things that I am missing. I am using Webpack 5.98 and I am able to successfully build the bundles. I am using Dojo 1.17.3. However, when I load the bundle.js when it is first loading the first bundle 208.bundle.js and I am throwing an error where e is blank. Any suggestions?
(t, e, n) => {
var r;
void 0 === (r = function() {
return function(t, e, n, r) {
var i, o, a;
if (t.load(e, n, (function(t) {
o = t,
a = !0,
i && i(t)
}
), {
isBuild: !0
}),
a)
return o;
if (!r)
throw new Error(e + " unavailable");
return (o = new Promise((function(t) {
i = t
}
))).DOJO_WEBPACK_DEFINE_PROMISE = !0,
o
}
}
.apply(null, [])) || (t.exports = r)
}
]]);
This is the plugin section of my webpack.config.js
plugins: [
new DojoWebpackPlugin({
loaderConfig: require("./js/loaderConfig"),
environment: {dojoRoot: "release"}, // used at run time for non-packed resources (e.g. blank.gif)
buildEnvironment: {dojoRoot: "node_modules"}, // used at build time
noConsole: true
}),
Beta Was this translation helpful? Give feedback.
All reactions