vitjs / vit

πŸš€ React application framework inspired by UmiJS / η±» UmiJS ηš„ React εΊ”η”¨ζ‘†ζžΆ
MIT License
100 stars 7 forks source link

Having an issue with a basic react app #7

Closed alkanna closed 2 years ago

alkanna commented 2 years ago

Hello, I tried to reproduce the example at yunsii/vite-react

I end up with these errors and a blank page 😒

CleanShot 2022-07-08 at 22 55 28

My _app.tsx, vite.config.ts and routes.ts are the exact same as shown in yunsii/vite-react

yunsii commented 2 years ago

Thanks for your feedback. Please tell me which branch you use in yunsii/vite-react, and the versions of react and vitjs has changed?

yunsii commented 2 years ago

Moreover, consider provide a reproduce repo?

yunsii commented 2 years ago

The error casued by use-subscription the same major version of ^1.5.1, I fixed it by ~1.5.1 in https://github.com/vitjs/vit/pull/9 so upgrade vitjs/vit & vitjs/runtime to lastest version will fix the error.