草庐IT

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

RaySirBlog 2023-09-13 原文

[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,注意安装目录

有关Module not found: Error: Package path 找不到模块的更多相关文章

  1. ruby - 在 Ruby 中使用匿名模块 - 2

    假设我做了一个模块如下:m=Module.newdoclassCendend三个问题:除了对m的引用之外,还有什么方法可以访问C和m中的其他内容?我可以在创建匿名模块后为其命名吗(就像我输入“module...”一样)?如何在使用完匿名模块后将其删除,使其定义的常量不再存在? 最佳答案 三个答案:是的,使用ObjectSpace.此代码使c引用你的类(class)C不引用m:c=nilObjectSpace.each_object{|obj|c=objif(Class===objandobj.name=~/::C$/)}当然这取决于

  2. ruby-on-rails - Ruby net/ldap 模块中的内存泄漏 - 2

    作为我的Rails应用程序的一部分,我编写了一个小导入程序,它从我们的LDAP系统中吸取数据并将其塞入一个用户表中。不幸的是,与LDAP相关的代码在遍历我们的32K用户时泄漏了大量内存,我一直无法弄清楚如何解决这个问题。这个问题似乎在某种程度上与LDAP库有关,因为当我删除对LDAP内容的调用时,内存使用情况会很好地稳定下来。此外,不断增加的对象是Net::BER::BerIdentifiedString和Net::BER::BerIdentifiedArray,它们都是LDAP库的一部分。当我运行导入时,内存使用量最终达到超过1GB的峰值。如果问题存在,我需要找到一些方法来更正我的代

  3. ruby-on-rails - Ruby on Rails : . 常量化 : wrong constant name error? - 2

    我正在使用这个:4.times{|i|assert_not_equal("content#{i+2}".constantize,object.first_content)}我之前声明过局部变量content1content2content3content4content5我得到的错误NameError:wrongconstantnamecontent2这个错误是什么意思?我很确定我想要content2=\ 最佳答案 你必须用一个大字母来调用ruby​​常量:Content2而不是content2。Aconstantnamestart

  4. ruby-on-rails - 在混合/模块中覆盖模型的属性访问器 - 2

    我有一个包含模块的模型。我想在模块中覆盖模型的访问器方法。例如:classBlah这显然行不通。有什么想法可以实现吗? 最佳答案 您的代码看起来是正确的。我们正在毫无困难地使用这个确切的模式。如果我没记错的话,Rails使用#method_missing作为属性setter,因此您的模块将优先,阻止ActiveRecord的setter。如果您正在使用ActiveSupport::Concern(参见thisblogpost),那么您的实例方法需要进入一个特殊的模块:classBlah

  5. ruby-on-rails - 错误 : Error installing pg: ERROR: Failed to build gem native extension - 2

    我克隆了一个rails仓库,我现在正尝试捆绑安装背景:OSXElCapitanruby2.2.3p173(2015-08-18修订版51636)[x86_64-darwin15]rails-v在您的Gemfile中列出的或native可用的任何gem源中找不到gem'pg(>=0)ruby​​'。运行bundleinstall以安装缺少的gem。bundleinstallFetchinggemmetadatafromhttps://rubygems.org/............Fetchingversionmetadatafromhttps://rubygems.org/...Fe

  6. ruby - 当使用::指定模块时,为什么 Ruby 不在更高范围内查找类? - 2

    我刚刚被困在这个问题上一段时间了。以这个基地为例:moduleTopclassTestendmoduleFooendend稍后,我可以通过这样做在Foo中定义扩展Test的类:moduleTopmoduleFooclassSomeTest但是,如果我尝试通过使用::指定模块来最小化缩进:moduleTop::FooclassFailure这失败了:NameError:uninitializedconstantTop::Foo::Test这是一个错误,还是仅仅是Ruby解析变量名的方式的逻辑结果? 最佳答案 Isthisabug,or

  7. ruby - 获取模块中定义的所有常量的值 - 2

    我想获取模块中定义的所有常量的值:moduleLettersA='apple'.freezeB='boy'.freezeendconstants给了我常量的名字:Letters.constants(false)#=>[:A,:B]如何获取它们的值的数组,即["apple","boy"]? 最佳答案 为了做到这一点,请使用mapLetters.constants(false).map&Letters.method(:const_get)这将返回["a","b"]第二种方式:Letters.constants(false).map{|c

  8. ruby - 模块嵌套代码风格偏好 - 2

    我的假设是moduleAmoduleBendend和moduleA::Bend是一样的。我能够从thisblog找到解决方案,thisSOthread和andthisSOthread.为什么以及什么时候应该更喜欢紧凑语法A::B而不是另一个,因为它显然有一个缺点?我有一种直觉,它可能与性能有关,因为在更多命名空间中查找常量需要更多计算。但是我无法通过对普通类进行基准测试来验证这一点。 最佳答案 这两种写作方法经常被混淆。首先要说的是,据我所知,没有可衡量的性能差异。(在下面的书面示例中不断查找)最明显的区别,可能也是最著名的,是你的

  9. ruby-on-rails - 使用 config.threadsafe 时从 lib/加载模块/类的正确方法是什么!选项? - 2

    我一直致力于让我们的Rails2.3.8应用程序在JRuby下正确运行。一切正常,直到我启用config.threadsafe!以实现JRuby提供的并发性。这导致lib/中的模块和类不再自动加载。使用config.threadsafe!启用:$rubyscript/runner-eproduction'pSim::Sim200Provisioner'/Users/amchale/.rvm/gems/jruby-1.5.1@web-services/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in`co

  10. ruby - RVM "ERROR: Unable to checkout branch ."单用户 - 2

    我在新的Debian6VirtualBoxVM上安装RVM时遇到问题。我已经安装了所有需要的包并使用下载了安装脚本(curl-shttps://rvm.beginrescueend.com/install/rvm)>rvm,但以单个用户身份运行时bashrvm我收到以下错误消息:ERROR:Unabletocheckoutbranch.安装在这里停止,并且(据我所知)没有安装RVM的任何文件。如果我以root身份运行脚本(对于多用户安装),我会收到另一条消息:Successfullycheckedoutbranch''安装程序继续并指示成功,但未添加.rvm目录,甚至在修改我的.bas

随机推荐