You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get "TypeError: definition.controllerConstructor is undefined" in the console when vite tries to reload the page after some JS changes.
And the JS changes will not come through as the page is not reloading.
Install the same versions and try to let vite reload the page by doing some javascript changes.
Possible Solution
A solution for me was to downgrade both pentatrion/vite-bundle and vite-plugin-symfony to version 6.5.3.
Only downgrading to 7.0.x was not enough. Downgrade to vite 5 also did not do the trick.
The issue started after a migration.
The text was updated successfully, but these errors were encountered:
vite-plugin-symfony version
7.1.0
vite-bundle version
7.1.0
your OS, node version, Symfony version, PHP version
vite 6.0.11, @hotwired/stimulus@^3.2.2, Ubuntu 22.04, node 20.15, symfony 6.4, PHP 8.3.8,
Description
I get "TypeError: definition.controllerConstructor is undefined" in the console when vite tries to reload the page after some JS changes.
And the JS changes will not come through as the page is not reloading.
Stack:
load vite-plugin-symfony_stimulus_helpers.js:2027
load vite-plugin-symfony_stimulus_helpers.js:2026
register vite-plugin-symfony_stimulus_helpers.js:2019
How to reproduce
Install the same versions and try to let vite reload the page by doing some javascript changes.
Possible Solution
A solution for me was to downgrade both pentatrion/vite-bundle and vite-plugin-symfony to version 6.5.3.
Only downgrading to 7.0.x was not enough. Downgrade to vite 5 also did not do the trick.
The issue started after a migration.
The text was updated successfully, but these errors were encountered: