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
But although the commands run successfully on my machine, the result is something that does not work. Because if we proceed further (as instructed "You can skip the rest of this article and go write your first JavaScript and CSS by reading Encore: Setting up your Project!"), we are told that we can run commands such as:
yarn watch
yarn dev
yarn build
But this is evidently far from the truth:
yarn run v1.22.19
warning package.json: No license field
error Command "build" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Following internet searches, I have tried yarn install --production=false but it makes no difference. Equally running composer require webpack makes no difference and neither does recipes:install symfony/webpack-encore-bundle --force -v.
There is no node_modules/.bin/encore and package.json makes no mention of anything (it only lists my own @popperjs/core and bootstrap yarn additions).
So it seems somebody has been over-optimistic about the minimal steps required to get it working, and it would be nice to see the docs corrected accordingly !
My environment
yarn version v1.22.19
node v18.4.0
PHP 8.1.7
Debian bullseye
My symphony dir was created using composer create-project symfony/skeleton:"6.1.*" foobar and all yarn commands are being run within that directory (i.e. I'm not being silly and running it somewhere else)
The text was updated successfully, but these errors were encountered:
Apologies for the obscure title but I'm ramming my head against a brick wall here !
According to the docs, all you need to do is:
composer require symfony/webpack-encore-bundle
yarn install
But although the commands run successfully on my machine, the result is something that does not work. Because if we proceed further (as instructed "You can skip the rest of this article and go write your first JavaScript and CSS by reading Encore: Setting up your Project!"), we are told that we can run commands such as:
yarn watch
yarn dev
yarn build
But this is evidently far from the truth:
Following internet searches, I have tried
yarn install --production=false
but it makes no difference. Equally runningcomposer require webpack
makes no difference and neither doesrecipes:install symfony/webpack-encore-bundle --force -v
.There is no
node_modules/.bin/encore
andpackage.json
makes no mention of anything (it only lists my own@popperjs/core
andbootstrap
yarn additions).So it seems somebody has been over-optimistic about the minimal steps required to get it working, and it would be nice to see the docs corrected accordingly !
My environment
yarn version v1.22.19
node v18.4.0
PHP 8.1.7
Debian bullseye
My symphony dir was created using
composer create-project symfony/skeleton:"6.1.*" foobar
and all yarn commands are being run within that directory (i.e. I'm not being silly and running it somewhere else)The text was updated successfully, but these errors were encountered: