Yarn workspace fails to build app with vite under the hood in Docker #16366
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
After further investigation I found out that the issue was with typescript declarations |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
It seems there are issues with yarn workspaces and react vite
Starting local dev server seems to load everything as expected and yarn workspace global packages are used correctly. But when we start to build application inside Docker image we get errors that those global packages are not found
I also wrote some explanation of weird behavior besides repro steps
Reproduction
https://github.com/karolis-666/monorepo-vite
Steps to reproduce
yarn install
yarn admin
(should start local dev server without problem)yarn workspace app-admin build
(should error that vite is not recognized)docker build -t monorepo/test:1.0.0 . --progress plain --no-cache
(should fail building Docker container, because @global/theme is not found)System Info
Used Package Manager
yarn
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions