-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
App boots, but immediately reloads again and breaks with bunch of errors like this one in the browser console:
-embroider-entrypoint.js:146
GET http://localhost:4200/node_modules/.vite/deps/ember-router-scroll__app__services_router-scroll__js.js?v=be2462b2 net::ERR_ABORTED 504 (Outdated Optimize Dep)
then
(index):1 GET http://localhost:4200/ember-vite-hmr/services/vite-hot-reload net::ERR_ABORTED 504 (Outdated Optimize Dep)
I can see <script type="module" src="/ember-vite-hmr/services/vite-hot-reload" /> is prepended into index.html even before the <html> tag.
There might be one more (unrelated?) error caught in time only if I use vite's terminal plugin (lines with _virtual:terminal) :
» "Error while processing route: my-route"
"Converting circular structure to JSON
--> starting at object with constructor 'StoreService'
| property 'notifications' -> object with constructor 'NotificationManager'
--- property 'store' closes the circle" "TypeError: Converting circular structure to JSON
--> starting at object with constructor 'StoreService'
| property 'notifications' -> object with constructor 'NotificationManager'
--- property 'store' closes the circle
at JSON.stringify (<anonymous>)
at stringify (http://localhost:4200/@id/__x00__virtual:terminal:14:17)
at Array.map (<anonymous>)
at stringifyObjs (http://localhost:4200/@id/__x00__virtual:terminal:20:40)
at Object.log (http://localhost:4200/@id/__x00__virtual:terminal:29:19)
at MyRoute.createSampleData (http://localhost:4200/app/my-route/route.ts:295:13)"
StoreService and NotificationManager are coming from latest ember data / warp-drive, but the same code runs fine without the HMR plugin enabled.
Not sure this makes any sense, and have no idea what should I debug here.
Metadata
Metadata
Assignees
Labels
No labels