Using yarn workspaces the build does not contain expected `Head` usage
See original GitHub issueAre you reporting a bug?
Yes
When using yarn workspaces the build does not contain expected <Head/>
usage. I.e. expected <title/>
is not in the build output.
It seems that this package or an upstream package requires physical presence of dependencies within the cwd. The build works, but the <Head />
is not applied.
See synopsis at https://github.com/AubreyHewes/react-static-yarn-workspaces-build-error
Environment
react-static -v
:
$ react-static -V # you need to update the issue template as it is a capital V ;-)
5.9.7
node -v
:
$ node -v
v8.12.0
yarn --version or npm -v
:
$ yarn --version
1.9.4
- Operating system:
$ lsb_release --description && uname -a
Description: Ubuntu 17.10
Linux alita 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce the problem
See https://github.com/AubreyHewes/react-static-yarn-workspaces-build-error
Base your steps off of any freshly installed react-static template!
See above repo (react-static basic template)
Expected Behavior
Build output contains <Head/>
i.e. custom <title/>
Reproducible Demo
https://github.com/AubreyHewes/react-static-yarn-workspaces-build-error
git checkout tags/step2
as master is the workaround (nohoist)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15 (4 by maintainers)
Top Results From Across the Web
No yarn workspaces detected despite using workspaces for ...
my test repository I'm using three branches one for each version of yarn. 3.1.1 seems to be stuck and using up all build...
Read more >Workspaces - Yarn
Workspaces are a new way to set up your package architecture that's available by default starting from Yarn 1.0. It allows you to...
Read more >Monorepo Dependency Chain Overreaching - Stack Overflow
FAILED Installed the foreach Workspace package, and ran yarn workspaces ... head-first into the situation that my monorepo no longer builds.
Read more >Creating a Yarn Monorepo in 2022 - Heygrady
This is similar to the Turborepo starter but it doesn't use turbo to ... This expects you to have a script called release...
Read more >Monorepo Javascript Projects with Yarn Workspaces and Lerna
You may have noticed that the dependencies were not installed in a node_modules folder in the monorepo-storybook folder. Instead, it was ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Wow, this rabbit hole is deep! Keep digging!
On Oct 3 2018, at 2:01 pm, Aubrey Hewes notifications@github.com wrote:
nohoist
is the recommended solution for now. Thanks for your help @AubreyHewes!