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

这篇具有很好参考价值的文章主要介绍了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,注意安装目录文章来源地址https://www.toymoban.com/news/detail-419441.html

到了这里,关于Module not found: Error: Package path 找不到模块的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • vue中Module not found: Error: Can‘t resolve ‘xxx’ in ‘xxx’

    该问题的出现:          可能是下载的库vue创建的时候没有直接引入(由于使用npm直接安装时权限不够,而以管理员身份运行cmd) 方法一: 以管理员身份进入cmd后,切换到你vue项目所在目录,再执行install安装 方法二: 1、先删除node_modules文件夹 2、然后执行npm install命令

    2024年02月11日
    浏览(56)
  • Module not found: Error: Can‘t resolve ‘core-js/modules/es.promise.js‘

     具体错误:  原因是未安装core-js 在package.json所在目录   npm i core-js -D  

    2024年02月04日
    浏览(80)
  • Module not found: Error: Can‘t resolve ‘vue-pdf‘ in ‘xxx‘

    使用命令npm run serve时vue项目报错: Module not found: Error: Can\\\'t resolve \\\'vue-pdf\\\' in \\\'xxx\\\'  解决方案: 运行命令 : 即可解决。 再次顺利执行npm run serve

    2024年02月11日
    浏览(50)
  • vue 解决:Module not found: Error: Can‘t resolve ‘vue-router‘ 的问题

    其一、报错为: Module not found: Error: Can\\\'t resolve \\\'vue-router\\\' 中文为: 找不到模块:错误:无法解析“vue-router” 其二、问题描述为: 根据报错的中文信息可知:应该是无法解析 vue-router 模块,应该是 vue-router 的版本或引入出了问题; 其一、查看 vue-router 的使用或引入方式是否有

    2024年01月25日
    浏览(60)
  • npm打包在linux上出现了Module not found: Error: Can’t resolve XXX

    做自动化部署,需要在linux服务器上利用脚本自动出包。 脚本依次执行 cd xxx npm install npm run build 1.执行 npm install node_module中有文件提示permission denied 2.执行 npm run build 提示Module not found: Error: Can’t resolve XXX 同样的node版本,在windows上执行一切正常,但是linux上却出现以上问题

    2024年02月04日
    浏览(54)
  • VUE前端启动报错Module not found: Error: Can‘t resolve ‘sass-loader‘

    这个错误提示通常是由于缺少 sass-loader 包导致的。要解决这个问题,可以尝试以下几种方法: 1、确认项目中是否已安装 sass-loader 包。可以在项目根目录下运行以下命令进行确认: 如果没有显示 sass-loader 包或显示版本号为红色,可能需要先安装 sass-loader 包: 2、确认项目中

    2024年02月12日
    浏览(64)
  • vue前端系统启动报错Module not found: Error: Can‘t resolve ‘sass-loader‘

    1、确认项目中是否已安装 node-sass 包。sass-loader 是依赖于 node-sass 包的,如果没有安装 node-sass 包,也会导致无法找到 sass-loader 包。 安装 node-sass 包: 2、确认项目中是否已安装 sass-loader 包。 安装 sass-loader 包:

    2024年02月20日
    浏览(51)
  • Module not found: Error: Can‘t resolve “xxx“ in “xxx“导致该问题的解决方案

    先看报错提示      根据报错提示反应的情况是:找不到模块:错误:无法解析 在遇到报错时应该仔细阅读报错提示,这样解决起来也不会没有头绪 在红色遮挡下有该报错出现的主要原因 在此处我们谈论一下解决该类报错的几种方法 1:在非路由组件中出现了图片路径,而

    2024年02月03日
    浏览(51)
  • Vue-cli中报错Module not found: Error: Can‘t resolve ‘vue-router‘

    背景 配置尚硅谷的尚品汇环境时,报如下错误: 出错的代码 看了一下我的代码没有问题,然后打开bilibili视频评论看来其他大佬的解决方法 使用npm install --save vue-router@3 安装3.5.5版本的,结果可以运行 困扰我好几个小时的问题终于解决了,感谢这位大佬 总结 遇到问题,可以

    2024年02月12日
    浏览(53)
  • CMake Error at CMakeLists.txt:5 (find_package):By not providing “FindOpenCV.cmake“ in CMAKE_MODULE

    CMake Error at CMakeLists.txt:5 (find_package): By not providing \\\"FindOpenCV.cmake\\\" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by \\\"OpenCV\\\", but CMake did not find one.  CMake Error at CMakeLists.txt:5 (find_package): By not providing \\\"FindOpenCV.cmake\\\" in CMAKE_MODULE_PATH this project has asked CMake to

    2024年04月27日
    浏览(42)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包