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

Deleting root causes vite:dev to exit #10093

Open
Mardoxx opened this issue Oct 11, 2024 · 1 comment
Open

Deleting root causes vite:dev to exit #10093

Mardoxx opened this issue Oct 11, 2024 · 1 comment

Comments

@Mardoxx
Copy link

Mardoxx commented Oct 11, 2024

Reproduction

Create remix project, run remix vite:dev, delete root.tsx (for example), hmr exits

System Info

-

Used Package Manager

npm

Expected Behavior

Keeps watching until root file exists

Actual Behavior

Exits with error

if (!rootRouteFile) {
throw new Error(`Missing "root" route file in ${appDirectory}`);
}

@victorlunam
Copy link

I think this is a correct behavior... the first step that occurs is to get the “document” and the “root”.

and both are defined in root.tsx, I think it will be unnecessary to implement this behavior.

the documentation say that "The "root" route (app/root.tsx) is the only required route"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants