情景
我正在编写一个 React-Native-Web (RNW) 应用程序。基本设计是一个将自定义 React-Native 组件库作为节点包的核心应用程序。
组件库也是一个 RNW 应用程序,因为我使用 StoryBook 允许独立开发。
问题
当我使用 git 将组件库安装npm i ...
到核心应用程序中并将其导入到 src 文件夹中的 App.js 中时,我收到以下错误...
ReferenceError: Can't find variable: Symbol
This error is located at:
in Styled(SimpleList) (created by App)
in RCTView (created by View)
in View (created by App)
in App (created by NativeApp)
in NativeApp
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
我也尝试安装es6-symbol但这似乎没有任何影响。
请问有什么建议吗?