-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into canary-ci-2-fix-2
- Loading branch information
Showing
109 changed files
with
2,726 additions
and
2,555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
slug: guides/monorepo | ||
title: Waku in a Monorepo Setup | ||
description: Tips for Using Waku in a Monorepo Setup | ||
--- | ||
|
||
## Issues with Two Instances of React | ||
|
||
Example error: | ||
|
||
``` | ||
TypeError: Cannot read properties of null (reading 'use') | ||
``` | ||
|
||
This issue can sometimes occur in `pnpm` workspaces. In such cases, configuring Vite may resolve the problem. | ||
|
||
`vite.config.ts`: | ||
|
||
```ts | ||
import { defineConfig } from 'vite'; | ||
|
||
export default defineConfig({ | ||
resolve: { | ||
dedupe: ['react', 'react-dom'], | ||
}, | ||
}); | ||
``` | ||
|
||
Ref: https://github.com/dai-shi/waku/issues/676 | ||
|
||
--- | ||
|
||
If you encounter other issues while using Waku in a monorepo setup, please report them. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.