Closed ThomasLandauer closed 2 years ago
Don't know if this is related, but after doing yarn add stimulus@^2.0 --dev
, I'm now getting from yarn encore dev
:
ERROR Failed to compile with 12 errors 18:47:34 Module build failed: Module not found: "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.object.set-prototype-of.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.object.get-prototype-of.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.reflect.construct.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.object.create.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.object.define-property.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.symbol.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.symbol.description.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.object.to-string.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.symbol.iterator.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.array.iterator.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/es.string.iterator.js". This file can not be found, please check it for typos or update it if the file got moved. "./node_modules/@symfony/stimulus-bridge/lazy-controller-loader.js!./assets/controllers/hello_controller.js" contains a reference to the file "core-js/modules/web.dom-collections.iterator.js". This file can not be found, please check it for typos or update it if the file got moved. Entrypoint app [big] 294 KiB = runtime.js 13 KiB vendors-node_modules_symfony_stimulus-bridge_dist_index_js.js 265 KiB app.css 406 bytes app.js 15.5 KiB webpack compiled with 12 errors
Hi, I have the same issue.
I have always the message yarn add stimulus --dev But Stimulus is correctly installed.
Thanks for your help
@ThomasLandauer see https://github.com/symfony/stimulus-bridge/issues/47#issuecomment-900506354
Closing. There are 2 issues here: (1) we don't yet support Stimulus 3 (we will soon - the work is all done). (2) about the core-js, I'll comment on #47 :)
Same. Just following the symfony instructions don't work currently.
What just fixed it for me was doing yarn install again. I got this error in the first place because I upgraded from Symfony 5.3 to 5.4. After that I upgraded my recipes. When upgrading webpack recipe I got the error after running yarn encore dev
. After a yarn install
everything worked as expected.
Foreword: I don't know what Stimulus is and why I need it ;-) I'm just following https://symfony.com/doc/current/frontend/encore/installation.html to install Webpack Encore.
$ yarn encore dev
outputs:$ yarn add @symfony/stimulus-bridge stimulus --dev
$ yarn encore dev
:$ yarn add stimulus --dev
:$ yarn explain peer-requirements pe425e
: