Open dokselblackbit opened 1 year ago
Hi!
Hmm, I'm not sure! Encore.enableStimulusBridge('./assets/controllers.json')
should be all you need. That creates a Webpack alias from @symfony/stimulus-bridge/controllers.json
to ./assets/controllers.json
, which this bridge then uses. I can't imagine what would be causing this to short-circuit. Is there anything special of custom about your set up or Webpack setup?
I do not know if this is still an issue, but https://github.com/symfony/stimulus-bridge/issues/30#issuecomment-776326465 solved it for me. I overwrote the alias and using Encore.addAliases({}) fixed it for me.
add this - .enableStimulusBridge('./assets/controllers.json') - in webpack.config.js
Hello. I have some error:
Your controllers.json file was not found. Be sure to add a Webpack alias from "@symfony/stimulus-bridge/controllers.json" to *your* controllers.json file.
I added into webpack.config.js Encore.enableStimulusBridge('./assets/controllers.json') How to fix it?controllers.json is into assets
{ "controllers": [], "entrypoints": [] }