question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stimulus Controller Lazy Load - Scheme/Path Error - Windows

See original GitHub issue

Hi 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
weaverryancommented, Feb 6, 2021

The fix is now up on @symfony/stimulus-bridge 2.0.1 😃

1reaction
adrienlamottecommented, Feb 6, 2021

@weaverryan I have @symfony/ux-swup installed, I just tried with fetch: lazy and it does work - no error in that case.

Thanks 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found