Module not found: Error: Package path 找不到模块

[1] ERROR in ./src/node_modules/react-bootstrap/esm/AbstractModalHeader.js 3:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/ModalHeader.js 4:0-56 14:27-46
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 42:0-55 42:0-55
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Alert.js 4:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 5:0-43 5:0-43
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Alert.js 5:0-40
[1] Module not found: Error: Package path ./Anchor is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 5:0-43 5:0-43
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Anchor.js 1:0-40
[1] Module not found: Error: Package path ./Anchor is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 6:0-45 6:0-45
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/BootstrapModalManager.js 5:0-52
[1] Module not found: Error: Package path ./ModalManager is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Modal.js 15:0-59 90:11-27
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 39:0-43 39:0-43
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/BreadcrumbItem.js 3:0-40
[1] Module not found: Error: Package path ./Anchor is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 9:0-61 9:0-61
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Button.js 3:0-52
[1] Module not found: Error: Package path ./Button is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 10:0-45 10:0-45
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Carousel.js 1:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 16:0-49 16:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Carousel.js 2:0-61
[1] Module not found: Error: Package path ./useUpdateEffect is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 16:0-49 16:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Carousel.js 3:0-61
[1] Module not found: Error: Package path ./useCommittedRef is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 16:0-49 16:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Carousel.js 4:0-51
[1] Module not found: Error: Package path ./useTimeout is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 16:0-49 16:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Carousel.js 5:0-40
[1] Module not found: Error: Package path ./Anchor is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 16:0-49 16:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Dropdown.js 4:0-48
[1] Module not found: Error: Package path ./Dropdown is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Dropdown.js 6:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/DropdownItem.js 3:0-59
[1] Module not found: Error: Package path ./DropdownItem is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Dropdown.js 8:0-42 102:8-20
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/DropdownItem.js 4:0-40
[1] Module not found: Error: Package path ./Anchor is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Dropdown.js 8:0-42 102:8-20
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/DropdownMenu.js 4:0-59
[1] Module not found: Error: Package path ./DropdownMenu is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Dropdown.js 9:0-72 67:20-44 101:8-20
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/DropdownMenu.js 5:0-69
[1] Module not found: Error: Package path ./useIsomorphicEffect is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Dropdown.js 9:0-72 67:20-44 101:8-20
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/DropdownMenu.js 6:0-57
[1] Module not found: Error: Package path ./useMergedRefs is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Dropdown.js 9:0-72 67:20-44 101:8-20
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/DropdownToggle.js 1:0-57
[1] Module not found: Error: Package path ./useMergedRefs is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Dropdown.js 10:0-46 100:10-24
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/DropdownToggle.js 2:0-58
[1] Module not found: Error: Package path ./DropdownContext is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Dropdown.js 10:0-46 100:10-24
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/DropdownToggle.js 3:0-63
[1] Module not found: Error: Package path ./DropdownToggle is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Dropdown.js 10:0-46 100:10-24
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/ListGroup.js 5:0-38
[1] Module not found: Error: Package path ./Nav is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 37:0-51 37:0-51
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/ListGroupItem.js 4:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 38:0-59 38:0-59
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/ListGroupItem.js 5:0-49
[1] Module not found: Error: Package path ./NavItem is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 38:0-59 38:0-59
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/ListGroupItem.js 6:0-61
[1] Module not found: Error: Package path ./SelectableContext is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 38:0-59 38:0-59
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Modal.js 7:0-59
[1] Module not found: Error: Package path ./useCallbackRef is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 39:0-43 39:0-43
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Modal.js 8:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 39:0-43 39:0-43
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Modal.js 9:0-57
[1] Module not found: Error: Package path ./useMergedRefs is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 39:0-43 39:0-43
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Modal.js 10:0-59
[1] Module not found: Error: Package path ./useWillUnmount is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 39:0-43 39:0-43
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Modal.js 14:0-42
[1] Module not found: Error: Package path ./Modal is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 39:0-43 39:0-43
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Nav.js 6:0-38
[1] Module not found: Error: Package path ./Nav is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 45:0-39 45:0-39
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/NavLink.js 3:0-40
[1] Module not found: Error: Package path ./Anchor is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 50:0-47 50:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/NavLink.js 4:0-49
[1] Module not found: Error: Package path ./NavItem is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 50:0-47 50:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/NavLink.js 5:0-61
[1] Module not found: Error: Package path ./SelectableContext is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 50:0-47 50:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Navbar.js 4:0-62
[1] Module not found: Error: Package path ./SelectableContext is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 46:0-45 46:0-45
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/NavbarToggle.js 4:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Navbar.js 9:0-42 76:10-22
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 46:0-45 46:0-45
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Offcanvas.js 2:0-57
[1] Module not found: Error: Package path ./useBreakpoint is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 51:0-51 51:0-51
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Offcanvas.js 3:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 51:0-51 51:0-51
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Offcanvas.js 6:0-42
[1] Module not found: Error: Package path ./Modal is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 51:0-51 51:0-51
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Overlay.js 4:0-46
[1] Module not found: Error: Package path ./Overlay is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 55:0-47 55:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Overlay.js 5:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 55:0-47 55:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Overlay.js 6:0-69
[1] Module not found: Error: Package path ./useIsomorphicEffect is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 55:0-47 55:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Overlay.js 7:0-57
[1] Module not found: Error: Package path ./useMergedRefs is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 55:0-47 55:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/OverlayTrigger.js 4:0-51
[1] Module not found: Error: Package path ./useTimeout is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 56:0-61 56:0-61
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/OverlayTrigger.js 7:0-57
[1] Module not found: Error: Package path ./useMergedRefs is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 56:0-61 56:0-61
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/PageItem.js 4:0-40
[1] Module not found: Error: Package path ./Anchor is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 57:0-49 57:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/SSRProvider.js 1:0-46
[1] Module not found: Error: Package path ./ssr is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 69:0-55 69:0-55
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/TabContainer.js 2:0-36
[1] Module not found: Error: Package path ./Tabs is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 72:0-57 72:0-57
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/TabPane.js 3:0-62
[1] Module not found: Error: Package path ./SelectableContext is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 75:0-47 75:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/TabPane.js 4:0-48
[1] Module not found: Error: Package path ./TabContext is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 75:0-47 75:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/TabPane.js 5:0-51
[1] Module not found: Error: Package path ./TabPanel is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 75:0-47 75:0-47
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Tabs.js 3:0-40
[1] Module not found: Error: Package path ./Tabs is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 76:0-41 76:0-41
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/Toast.js 4:0-51
[1] Module not found: Error: Package path ./useTimeout is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 78:0-43 78:0-43
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/ToastHeader.js 4:0-63
[1] Module not found: Error: Package path ./useEventCallback is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 80:0-55 80:0-55
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/TransitionWrapper.js 3:0-57
[1] Module not found: Error: Package path ./useMergedRefs is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Fade.js 7:0-52 32:27-44
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 23:0-41 23:0-41
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/getTabTransitionComponent.js 1:0-56
[1] Module not found: Error: Package path ./NoopTransition is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\ui\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/Tabs.js 10:0-68 67:16-41
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 76:0-41 76:0-41
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] ERROR in ./src/node_modules/react-bootstrap/esm/useWrappedRefWithWarning.js 3:0-57
[1] Module not found: Error: Package path ./useMergedRefs is not exported from package E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks (see exports field in E:\ProjectSource-Code\87VR-Game-Electron\src\node_modules\@restart\hooks\package.json)
[1] @ ./src/node_modules/react-bootstrap/esm/DropdownMenu.js 12:0-66 85:32-56
[1] @ ./src/node_modules/react-bootstrap/esm/Dropdown.js 9:0-72 67:20-44 101:8-20
[1] @ ./src/node_modules/react-bootstrap/esm/index.js 21:0-49 21:0-49
[1] @ ./src/App.tsx 42:0-49 658:28-42
[1] @ ./src/ViewManage.tsx 29:0-24 32:29-32
[1] @ ./src/index.tsx 7:0-39 8:26-37
[1]
[1] webpack 5.5.1 compiled with 58 errors and 1 warning in 12671 ms
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[1] error Command failed with exit code 1.
[1] yarn build:renderer exited with code 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

解决:
1.编译时出现几十条 ERROR in ./node_modules/***,说明node_modules出现了问题,可能你的包出现问题,但是实际上包出现问题的几率不大,那什么导致了node_modules出现了问题?

解决方法:原因基本是你在使用babel的时候,babel的文件匹配规则出现了错误,打开你的webpack.config.js,找到module里的rules数组,看看是不是自己的babel匹配规则缺少了exclude:/node_modules/

如果只是 { test:/\.js$/ , use:"babel-loader" } 就会出现以上的错误,添加上 exclude:/node_modules/

改成:{ test:/\.js$/ , use:"babel-loader",exclude:/node_modules/ }

以上配置齐全那么就说明真的是包出现问题了,请重新安装react-bootstrap,注意安装目录

热门相关:仙城纪   网游之逆天飞扬   仗剑高歌   天启预报   薄先生,情不由己