RUNTIME-005
After Shared is set, the corresponding dependent library will be determined to be an asynchronous module. If the asynchronous entry is not enabled and eager: true
is not set, then this error will occur.
Just choose one of the two:
Enable asynchronous entry
If the @module-federation/modern-js
plug-in is used, the corresponding asynchronous entry will be enabled based on the builder type by default.
But if it is build mode, then you still need to set the asynchronous entry manually.
Next, we will demonstrate how to enable asynchronous entry.
Create the bootstrap.js file and copy the contents of the original entry file here:
Modify the content of the original entry file and reference bootstrap.js instead:
eager: true