【发布时间】:2019-08-20 12:48:42
【问题描述】:
在升级到较新版本的react-bootstrap (1.0.0-beta.6) 后,我最近开始遇到npm build 的问题。
Creating an optimized production build...
Failed to compile.
Cannot find module: '@restart/context/forwardRef'. Make sure this package is installed.
./node_modules/react-bootstrap/es/ThemeProvider.js
You can install this package by running: yarn add @restart/context/forwardRef.
我尝试运行提供的yarn 命令,但这不是有效的包名。有谁知道如何在不回到旧版本的情况下解决这个问题(不支持标签,这是我正在使用的东西)?
【问题讨论】:
标签: javascript reactjs npm npm-install react-bootstrap