Closed prakhargupta1 closed 1 year ago
I can't reproduce
Started a fresh project using yarn create toolpad app (later also tried using npx)
Can you share the exact commands and input that you've used to get to this project?
From your screenshot it looks like you have a pg_admin folder inside of a pg_admin folder. Are you sure you're starting toolpad in the right folder?
Just tried and I can't reproduce it either.
Started a new folder and tried again. Not sure what got missed.
This is exactly the error we had on Windows...
But the create-toolpad-app
version you were using yesterday shouldn't have included those fixes yet, right?
If it did then it's something with the Windows fix for the path.
Edit: nevermind I see it's not creating a resources folder like it should, different issue then
Ok I also got this after all but nothing crashed:
I think it's a temporary error when we create a new toolpad app with create-toolpad-app
and run yarn dev
and we go to create a custom function. It works but because it didn't create the resources
folder right away it shows this error in the console when it tries to get the list of available functions.
So we should probably fix this just not to show the ugly console error at least.
But since there is no resources
folder. I can't write a code query.
I'll upgrade to v0.1.7 and retry.
But since there is no
resources
folder. I can't write a code query. I'll upgrade to v0.1.7 and retry.
It ended up creating the resources
folder for me when I pressed Open editor
, but it wasn't there in the beginning.
I think the fixes in v0.1.7 are unrelated so the issue should still be there.
Upgraded to v0.1.7 and this issue is gone!
This again happened today when I created a fresh app using yarn create toolpad-app. Somehow resources folder isn't created sometimes.
This is still happening in v0.1.11. Components folder is also not being created.
So far that has been deliberate. The idea was that the project folders comes as thin as possible and these folders get created on demand as the first function is added or the first component is added. Do you think we should always create these folders/files when the project starts up, even when users don't need them?
Ok, just validated this. After learning how Toolpad works, there would be times when a user would start from a function or code component, so creating them by default sounds reasonable to me. Having these folders not created makes me question if there was some issue in the installation process.
On my machine when I create a fresh toolpad app, the following issues are observed:
https://github.com/mui/mui-toolpad/assets/92228082/74f6fac4-2205-46ea-880f-15af3be33967
Duplicates
Latest version
Steps to reproduce 🕹
Steps:
Current behavior 😯
Expected behavior 🤔
No response
Context 🔦
No response
Your environment 🌎
Mac Toolpad version v0.1.6