Closed michanismus closed 3 years ago
I am trying to install stimulus controllers. I followed the instructions but get the following error:
Running webpack ... Error: Cannot find module '@symfony/stimulus-bridge/webpack-helper' - loader.js:636 Function.Module._resolveFilename internal/modules/cjs/loader.js:636:15 - loader.js:562 Function.Module._load internal/modules/cjs/loader.js:562:25 - loader.js:692 Module.require internal/modules/cjs/loader.js:692:17 - v8-compile-cache.js:159 require [j+h]/[v8-compile-cache]/v8-compile-cache.js:159:20 - stimulus-bridge.js:25 module.exports [j+h]/[@symfony]/webpack-encore/lib/plugins/stimulus-bridge.js:25:30 - config-generator.js:461 ConfigGenerator.buildPluginsConfig [j+h]/[@symfony]/webpack-encore/lib/config-generator.js:461:9 - config-generator.js:73 ConfigGenerator.getWebpackConfig [j+h]/[@symfony]/webpack-encore/lib/config-generator.js:73:27 - config-generator.js:677 module.exports [j+h]/[@symfony]/webpack-encore/lib/config-generator.js:677:22 - index.js:1547 Encore.getWebpackConfig [j+h]/[@symfony]/webpack-encore/index.js:1547:16 - EncoreProxy.js:51 Proxy.parameters [j+h]/[@symfony]/webpack-encore/lib/EncoreProxy.js:51:53 - webpack.config.js:33 Object.<anonymous> /srv/htdocs/j+h/webpack.config.js:33:22 - v8-compile-cache.js:192 Module._compile [j+h]/[v8-compile-cache]/v8-compile-cache.js:192:30 - loader.js:789 Object.Module._extensions..js internal/modules/cjs/loader.js:789:10 - loader.js:653 Module.load internal/modules/cjs/loader.js:653:32 - loader.js:593 tryModuleLoad internal/modules/cjs/loader.js:593:12 - loader.js:585 Function.Module._load internal/modules/cjs/loader.js:585:3 - loader.js:692 Module.require internal/modules/cjs/loader.js:692:17 - helpers.js:25 require internal/modules/cjs/helpers.js:25:18 - webpack.js:156 Object.<anonymous> [j+h]/[webpack]/bin/webpack.js:156:2 - loader.js:778 Module._compile internal/modules/cjs/loader.js:778:30
Any hint what could be wrong!?
Resolved, had to update to @symfony/webpack-encore:^1.0.0
@symfony/webpack-encore:^1.0.0
I am trying to install stimulus controllers. I followed the instructions but get the following error:
Any hint what could be wrong!?