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
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.
#77
Open
dokselblackbit opened this issue
Dec 13, 2022
· 3 comments
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": [] }
The text was updated successfully, but these errors were encountered:
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?
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": [] }
The text was updated successfully, but these errors were encountered: