簡體   English   中英

安裝react-native-elements軟件包后出現錯誤

[英]Error after installing react-native-elements package

我前一段時間通過npm安裝了react-native-elements。 今天早上,我試圖從程序包中創建一個Overlay組件,但是由於某種原因,我不斷收到錯誤消息,指出不存在這樣的組件。 因此,愚蠢地,我再次運行npm install react-native-elements ,現在每次嘗試構建時,都會出現以下錯誤:

Unable to resolve ./social/SocialIcon" from "./C:\\\\Users\\\\L\\\\IdeaProjects\\\\FinalProject\\\\node_modules\\\\react-native-elements\\\\src\\\\index.js :模塊./social/SocialIcon ”。

我已經安裝了react-native-vector-icons。 我不知道為什么會這樣。

嘗試安裝@ expo / vector-icons

npm install @expo/vector-icons --save

https://github.com/react-native-training/react-native-elements/issues/620

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM