-
-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
135 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@module-federation/error-codes': patch | ||
'@module-federation/enhanced': patch | ||
'@module-federation/sdk': patch | ||
--- | ||
|
||
fix(enhanced): abort process if not find expose modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
apps/website-new/docs/en/guide/troubleshooting/build/BUILD-001.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import ErrorCodeTitle from '@components/ErrorCodeTitle'; | ||
|
||
<ErrorCodeTitle code='BUILD-001'/> | ||
|
||
## Reason | ||
|
||
The Expose module resource could not be found properly. | ||
|
||
There are two reasons for this problem: | ||
1. The exposeModules file path set by `exposes` is incorrect and points to a non-existent address. | ||
2. When using `Next.js` or other frameworks with built-in webpack, the webpack address used by MF is incorrect. | ||
|
||
## Solutions | ||
|
||
There are corresponding solutions for the reasons: | ||
|
||
1. Check whether the module file path corresponding to exposes is correct. Pay attention to the case here. | ||
2. Check whether FEDERATION_WEBPACK_PATH is consistent with the webpack address used by the framework. If not, you can check whether the dependency is installed normally, or set process.env.FEDERATION_WEBPACK_PATH to point to the actual webpack address used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
apps/website-new/docs/zh/guide/troubleshooting/build/BUILD-001.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import ErrorCodeTitle from '@components/ErrorCodeTitle'; | ||
|
||
<ErrorCodeTitle code='BUILD-001'/> | ||
|
||
## 原因 | ||
|
||
未能正常找到 Expose 模块资源。 | ||
|
||
该问题原因有两个: | ||
1. `exposes` 设置的 exposeModules 文件路径不正确,指向一个不存在的地址。 | ||
2. 使用了 `Next.js` 或其他内置了 webpack 的框架,MF 使用的 webpack 地址与其不对 | ||
|
||
## 解决方法 | ||
|
||
针对原因,有对应的解决方法: | ||
|
||
1. 检查 exposes 对应的模块文件路径是否正确,此处注意大小写。 | ||
2. 检查 FEDERATION_WEBPACK_PATH 与框架使用的 webpack 地址是否一致,如果不对,可以查看依赖是否正常安装,或者设置 process.env.FEDERATION_WEBPACK_PATH 指向实际使用的 webpack 地址。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
export * from './error-codes'; | ||
export { getShortErrorMsg } from './getShortErrorMsg'; | ||
export { runtimeDescMap, typeDescMap, errorDescMap } from './desc'; | ||
export { | ||
runtimeDescMap, | ||
typeDescMap, | ||
errorDescMap, | ||
buildDescMap, | ||
} from './desc'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.