reactjs - 在 Mac OS X 和 Linux 中使用 yarn lint 链接依赖项
问题描述
伙计们,我已经花了很多时间,但仍然有问题。
我有几个项目的monorepo,不要问我为什么,拜托:-(
repo (relay-compiler, graphql schema)
---repo-one (babel6, webpack3, legacy)
------yarn && cd ../repo-two && yarn link && cd ../repo-one yarn link repo-two
---repo-two (babel7, library with shared components for one and three)
---repo-three(babel7,)
------yarn && cd ../repo-two && yarn link && cd ../repo-three && yarn link repo-two
目前,我在 Linux 机器上构建时遇到问题,但在 Mac OS X 上,一切正常。
ERROR in ../repo-two/Models/Model.js
Module build failed: ReferenceError: Unknown plugin "relay"
解决方案
推荐阅读
- c# - 如何使用 SQL Server 管理对象启用文件流支持?
- mysql - 我无法从 docker 容器中的 .NET 应用程序连接到主机中的 mysql
- c++ - C++ memcpy/strcpy 的 char 指针指向类成员 char 指针
- python - 无法使用 kivy 应用程序和 buildozer 振动我的 android
- django - Django 错误 "django.core.exceptions.ValidationError: ['"h" value has an invalid format. 它必须是 YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] 格式。']"
- sql - 如何自动比较在不同 Oracle 环境中运行的相同 SQL 查询的结果集
- flutter - 如何使用 Flutter 从 URL 中获取参数
- spring - 在 Spring Boot 应用程序中延迟 EurekaClient 启动
- r - 使用输入在 Shiny 中生成带有多个向量的 data.frame
- python - TypeError:不能将序列乘以“unicode”类型的非整数