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
Copy file name to clipboardExpand all lines: examples/sites/demos/pc/webdoc/faq-en.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@
2
2
3
3
## 1, Popup element misaligned and flipped in wujie micro front-end
4
4
5
-
_Reason:_ The popup element has a boundary detection logic, and in sub applications, the width and height of 'window' may be much smaller than that of the viewport,
5
+
**Reason:** The popup element has a boundary detection logic, and in sub applications, the width and height of 'window' may be much smaller than that of the viewport,
6
6
therefore, it can misjudge boundaries, leading to issues such as flipping and misalignment.
7
7
8
-
_Solution:_ Introducing popup global configuration, assigning the 'window' of the main application to the 'viewportWindow' of the global configuration for boundary judgment
8
+
**Solution:** Introducing 'popup global' configuration, assigning the 'window' of the main application to the 'viewportWindow' of the global configuration for boundary judgment
@@ -17,15 +17,16 @@ if (window.__POWERED_BY_WUJIE__) {
17
17
}
18
18
```
19
19
20
-
## 2、In Vitepress, reference the Opentiny component package and use Vitepress to package the command: pnpm docs:build, report errors: ERR_UNSUPPORTED_DIR_IMPORT
20
+
## 2、In the 'Vitepress' project, reference the 'opentiny' component package and use the 'Vitepress' packaging command: 'pnpm docs:build' , Causing error: 'ERR_UNSUPPORTED_DIR_IMPORT'
21
21
22
-
_Reason:_ Using Vitepress packaging, the suffix paths such as js/css related to file references in the component package cannot be found. Causing error: ERR_UNSUPPORTED_DIR_IMPORT
22
+
**Reason:** Unable to find the 'js/css/...' files referenced within the component package waiting for suffix path, error statement: 'Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import "xxx" is not supported resolving ES modules imported from xxx/lib/index.js'
23
23
24
-
_Solution:_ Resolve the error issue by configuring the 'vitepress/config. js' file:
24
+
**Solution:** In the '. vitepress/config. js' file, add the following code:
**原因:** 找不到组件包内引用相关文件的 `js/css/...` 等后缀路径,报错语句:`Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import 'xxx' is not supported resolving ES modules imported from xxx/lib/index.js`
0 commit comments