为什么我会遇到此错误 - 汇编而成问题:找不到模块:错误:可以分辨出React-Top-loading-bar'安装顶级式酒吧时
我想要一个页面上的顶级加载条,但是当我尝试安装NPM时,我会遇到很多错误。 这是我使用的命令 -
npm install --save react-top-loading-bar
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"></script>
以及我端子中的错误 -
的图片
端子 =“ https://i.sstatic.net/ne06l.png” rel =“ nofollow noreferrer”>浏览器的图片
I want a top loading bar on my page but I keep getting a bunch of errors when I tried to install the npm.
this is the command I used-
npm install --save react-top-loading-bar
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"></script>
and the errors in my terminal-
and the error on my browser
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些是您在项目具有不同版本的React时要获取的软件包的上游依赖性问题。
在React 18项目中工作时,我现在也可以通过较旧的包裹得到这些。
您可以用力安装:
These are upstream dependency issues from the package you're trying to fetch while your project has a different version of react.
I get these a lot too with older packages now while working in react 18 projects.
You can install with a force: