Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Can't run the latest preact example successfully #23901
Comments
|
@onegrit the only solution that worked for me was downgrading the diff --git a/examples/preact/package.json b/examples/preact/package.json
index 03dcddbf62..5c60bcdc8a 100644
--- a/examples/preact/package.json
+++ b/examples/preact/package.json
@@ -11,7 +11,7 @@
"@testing-library/user-event": "latest",
"preact": "latest",
"preact-compat": "latest",
- "react-scripts": "latest"
+ "react-scripts": "^3.4.3"
},
"scripts": {
"start": "react-app-rewired start",Let me know if this works for you. I know it's not the ideal solution, but wasn't able to find anything better. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

When I run 'yarn start' in preact example after installing, I met the following error:
Within the same environment, the example of styled-components and gatsby can work.
This issue has tortured me for 1 day, I don’t know how to solve this problem, I look forward to advices. Thanks.
BTW, the codesandbox preact example can't work either.
Current Behavior😯
Continue google
Expected Behavior🤔
Steps to Reproduce🕹
Steps:
Context🔦
Your Environment🌎