-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
external_"app2":1 Uncaught (in promise) ScriptExternalLoadError: Loading script failed. #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
try with this syntax, or you might need to use |
@ScriptedAlchemy### library: {type: 'umd'} |
i have same problem, how about now |
I'm having the same issue, here is my configuration set
The component configuration is correct, export default components but I still have this issue ScriptExternalLoadError
|
Public path isn't set to auto or an absolute url |
project vue_components }, project jcj_front |
@ScriptedAlchemy There is also an open issue which reports this exact problem here: #1273 And the same issue had been reported here: #957 and here: #692 as well. I don't know how the code works, but can this warning be more elaborate to tell what exactly failed and what is the solution to fix it? If it is caused by the publicPath indeed, then maybe the warning should also report the location of misconfiguration and the incorrect value? One thing which is not always clear in these bug reports to me, if people do the remote module loading manually, or through a 3rd party library. In case of angular for example That might be a culprit too. |
Some further note: as suspected, this error has nothing to do with publicPath. |
I still have the same error even though I used remote app
host app
|
I also encountered this problem. Has anyone solved it |
if your use the vue-cli make sure to config : |
and set: |
Yeah a single runtime chunk causes issues. Or you neee to use the runtime option under module federation plugin |
|
你好,请问这个问题解决了吗,我也遇到了同样的问题还没解决 |
could you give the full config to resovle this issue? Thanks |
hi,bro . did this issue fixed? and how to fix |
Here's a repo to reproduce this issue, the Microfrontend doesn't load. I think I tried pretty much everything mentioned here. |
when i set |
in prod set splitChunks = true . in dev set splitChunks = false. is oK? |
Set it to undefined and then webpack will do default. |
Any update on this issue?? |
Try using module-federation/enhanced - we fixed chunk split issues there |
我的vue项目,自己尝试的时候发现一般有以下几个原因 呃,感觉限制还挺多的.... |
"webpack": "5.0.0-beta.23":
app1:


Error:

The text was updated successfully, but these errors were encountered: