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
I have to use externals for some lazy loaded chunks of my app (it's a requirement of the environment in which the app is being developed). Script loading is made manually on specific user actions. Externals type is script and there is no problems to use it independently in different parts of the app.
...
function userAction() {
import('a.js').then(res => {
...
});
}
function anotherUserAction() {
import('b.js').then(res => {
...
});
}
...
But if the script from externals is imported in another script from externals when the browser tries to load the script I get the error: ScriptExternalLoadError: Loading script failed. a.bundle.js
import * as b from 'b.js';
...
How can I make it work keeping a and b as the externals?
The text was updated successfully, but these errors were encountered:
I have to use externals for some lazy loaded chunks of my app (it's a requirement of the environment in which the app is being developed). Script loading is made manually on specific user actions. Externals type is script and there is no problems to use it independently in different parts of the app.
webpack.config
main.bundle.js
But if the script from externals is imported in another script from externals when the browser tries to load the script I get the error:
ScriptExternalLoadError: Loading script failed.
a.bundle.js
How can I make it work keeping a and b as the externals?
The text was updated successfully, but these errors were encountered: