-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
__FIXED__ : workaround in `vite.config.js` by @hi-ogawa | ||
|
||
This repo shows an error while testing SWR on Preact with Vitest | ||
|
||
TypeError: Cannot read properties of null (reading 'useContext') | ||
|
||
`pnpm dev` working site | ||
|
||
`pnpm vitest` not working test | ||
`pnpm vitest` not working test | ||
|
||
Issues follow up : | ||
[Issue in Vitest repo](https://github.com/vitest-dev/vitest/issues/5915) | ||
[Issue in Preact repo](https://github.com/preactjs/preset-vite/issues/124) | ||
[Issue in SWR repo](https://github.com/vercel/swr/issues/2981) |
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