-
I'm creating a project using Symfony and I'm having problems with the Apparently this package is not available on npm and yarn, I installed it via composer as the documentation recommends. These are the steps I reproduced until I came across the error: Creating Symfony App composer create-project symfony/skeleton symfony_skeleton Package installation composer require webapp composer require symfony/asset-mapper symfony/asset symfony/twig-pack symfony/stimulus-bundle composer require webpack The problemWhen I run I ran the commands before running
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The StackOverflow question you provide already had an accepted answer which seems to make sense. Did you try configuring or removing the AssetMapper component? |
Beta Was this translation helpful? Give feedback.
-
Please help me ERROR Failed to compile with 2 errors 10:27:11 am Module build failed: Module not found: "./assets/bootstrap.js" contains a reference to the file "@symfony/stimulus-bridge/lazy-controller-loader". Entrypoint app/js 15.6 KiB = runtime.js 12.8 KiB app/js.js 2.86 KiB |
Beta Was this translation helpful? Give feedback.
I understand, besides the error you told me
also find out something else I was doing wrong
In this case, the result obtained is in fact the string 'data-controller'hello'. Since the controller was not linked to an HTML element, but rather written in the "body" of the document, the correct way to use it would be:
Thank you for your attention and help