-
-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite examples (vite and firebase-vite) don't run #4583
Comments
Thanks for reporting this! We're about to release |
@bharatkashyap Thanks for the quick reply! |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @ben5516 How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
I am writing a Vite based React app and using "@toolpad/core" version 0.12.0 ("latest" in our package.json). The import statement I would be happy to provide any further information that would be helpful. |
Hi, can you check your Otherwise feel free to create a separate issue and provide a reproduction! |
Sorry for the delayed response! In this case, the problem was on our end. Someone had installed react-router-dom as a dependency in the project instead of react-router. It took me a while to realize what the problem was! Once I removed react-router-dom and installed react-router, the import statement was recognized without issue. I did notice something interesting during my wrestling match with npm though - running I don't know if that information would be helpful to your team or not, as you continue the development of the library, but thought I would offer it just in case. |
I just had a simillar issue. I created a simple React Router app: When I import
Should I open a separate issue? |
A separate issue would be very helpful, given this one focussed more on the examples in our docs. Thank you 🙏🏻 |
Steps to reproduce
Steps:
npc create-toolpad-app@latest --example firebase-vite
ornpx create-toolpad-app@latest --example vite
cd
into the directorynpm install
npm run dev
Current behavior
You get an error:
Expected behavior
The example should run without issue
Context
No response
Your environment
npx @mui/envinfo
Search keywords: vite react-router @toolpad/core/react-router
The text was updated successfully, but these errors were encountered: