Stimulus Controller Lazy Load - Scheme/Path Error - Windows
See original GitHub issueHi guys,
I just updated Webpack Encore to 1.0 and Stimulus Bridge to 2.0, and I have an error when I try to add the lazy comment to my controller. The comment :
/* stimulusFetch: 'lazy' */
export default class extends Controller {
...
The error :
ERROR Failed to compile with 1 errors 14:13:39
error in E:Projectmyproject_websiteassetscmscontrollerscollection_controller.js
Syntax Error: Reading from "E:Projectmyproject_websiteassetscmscontrollerscollection_controller.js" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "e:" URIs.
As you can see, the path folder separator is missing in the error log… This might be a windows specific error…
Any help would be appreciated !
Cheerz
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Stimulus controller not working in lazy loaded frame
I've noticed that if I lazy-load a turbo-frame that uses a stimulus controller that isn't used in the containing page, then the controller...
Read more >Unable to resolve specifier 'stimulus' error - Stack Overflow
The browser console complains with: Failed to register controller: test (controllers/test_controller) ...
Read more >Support for Dynamic/Lazy loading of Stimulus Controllers.
Register each controller with Stimulus import controllers from "./**/*_controller.js" controllers.
Read more >Stimulus Controllers > Symfony UX
This is a modal window. The media could not be loaded, either because the server or network failed or because the format is...
Read more >Writing better StimulusJS controllers
Stimulus sprinkles interactive behavior on top of your boring HTML pages. ... You could use this same controller to lazy load a section...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The fix is now up on
@symfony/stimulus-bridge
2.0.1 😃@weaverryan I have @symfony/ux-swup installed, I just tried with
fetch: lazy
and it does work - no error in that case.Thanks 😃