Skip to content
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 reports valid error (routes) on wasp start start, but not on wasp start reload. #2333

Open
Martinsos opened this issue Oct 9, 2024 · 0 comments
Labels
shouldfix We should do/fix this at some point

Comments

@Martinsos
Copy link
Member

This happened while I was testing TS SDK.

In main.wasp.ts, if you make one of default imports named import (e.g. for client), and then run wasp start, Vite reports error in the CLI, that import is invalid.

But, if I do that after I have already run wasp start, there is no error reported in the CLI, instead it all reloads as if all was ok.

How is that, is that expected behaviour? I would expect the same behaviour but maybe this is how our Vite is configured and there is a reason behind it? I should also confirm this is not TS SDK specific thing but I don't think it is.

@infomiho you might have some ideas.

@Martinsos Martinsos added the shouldfix We should do/fix this at some point label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
shouldfix We should do/fix this at some point
Projects
None yet
Development

No branches or pull requests

1 participant