小编Dus*_*n K的帖子

错误:无法解析模块“internal_package”

背景

我使用yarn作为包管理器,并尝试为react-native应用程序创建一个mono-repo,并使用像这样的通用repo与web应用程序结合使用。

在此输入图像描述

问题

我正在使用纱线工作区。我 cd'ed 进入common目录并运行yarn link,然后进入app目录并链接包名称,就像使用此命令yarn link "@wow/common". Everything seemed to work as "@wow/common" showed up in mono-repo/packages/app/node_modules . I ran Yarn React-Native Start --reset-cache thenYarn android` 一样,我仍然收到这个错误。

yarn run v1.22.4
$ react-native start
                                                          
               ######                ######               
             ###     ####        ####     ###             
            ##          ###    ###          ##            
            ##             ####             ##            
            ##             ####             ##            
            ##           ##    ##           ##            
            ##         ###      ###         ##            
             ##  ########################  ##             
          ######    ###            ###    ######          
      ###     ##    ##              ##    ##     ### …
Run Code Online (Sandbox Code Playgroud)

reactjs react-native yarnpkg yarn-workspaces

5
推荐指数
1
解决办法
3573
查看次数

标签 统计

react-native ×1

reactjs ×1

yarn-workspaces ×1

yarnpkg ×1