-
Notifications
You must be signed in to change notification settings - Fork 168
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
Circular imports in routes.tsx + Flow.tsx #19658
Comments
Artur-
added a commit
that referenced
this issue
Jul 3, 2024
Artur-
added a commit
that referenced
this issue
Jul 3, 2024
Artur-
added a commit
that referenced
this issue
Jul 3, 2024
Artur-
added a commit
that referenced
this issue
Jul 3, 2024
mshabarov
pushed a commit
that referenced
this issue
Jul 4, 2024
… import (#19666) Instead of importing routes.js/routes.ts/routes.tsx from the project into Flow.tsx and creating a circular dependency, this moves importing of routes.js to a new file that is always included when react is used vaadin-react.tsx. This file publishes the routes as window.Vaadin.routesConfig so that Flow.tsx can read them from there without directly depending on routes.js Fixes #19658
vaadin-bot
pushed a commit
that referenced
this issue
Jul 4, 2024
… import (#19666) Instead of importing routes.js/routes.ts/routes.tsx from the project into Flow.tsx and creating a circular dependency, this moves importing of routes.js to a new file that is always included when react is used vaadin-react.tsx. This file publishes the routes as window.Vaadin.routesConfig so that Flow.tsx can read them from there without directly depending on routes.js Fixes #19658
vaadin-bot
added a commit
that referenced
this issue
Jul 4, 2024
… import (#19666) (#19670) Instead of importing routes.js/routes.ts/routes.tsx from the project into Flow.tsx and creating a circular dependency, this moves importing of routes.js to a new file that is always included when react is used vaadin-react.tsx. This file publishes the routes as window.Vaadin.routesConfig so that Flow.tsx can read them from there without directly depending on routes.js Fixes #19658 Co-authored-by: Artur <[email protected]>
This ticket/PR has been released with Vaadin 24.5.0.alpha4 and is also targeting the upcoming stable 24.5.0 version. |
This ticket/PR has been released with Vaadin 24.4.5. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the bug
When you start an app using Hilla FS routes and then do
Two things can happen in the browser:
This is covered by #19657
This is related to the Vite logs
and with
--debug hmr
Expected behavior
No circular import errors
Minimal reproducible example
npm init vaadin test-hmr
Versions
The text was updated successfully, but these errors were encountered: