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
When running yarn install inside a Docker container (FROM php:8.2-fpm-alpine), I encountered the following error:
3.520 error Package "" refers to a non-existing file '"/srv/app/vendor/symfony/ux-autocomplete/assets"'.
3.520 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
I think it's something with your docker volumes. You may have your yarn.lock share between your local env and your container but not your node-modules.
The problem was that the composer packages needed to be installed before running yarn install. Rearranging the order in the Dockerfile resolved the issue.
See "@symfony/ux-autocomplete": "file:vendor/symfony/ux-autocomplete/assets", in package.json.
Symfony version(s) affected
6.3.6
Description
When running yarn install inside a Docker container (FROM php:8.2-fpm-alpine), I encountered the following error:
Here's the relevant section of the Dockerfile:
Here's the contents of the package.json file:
"symfony/ux-autocomplete": "^2.12"
is added to the composer.json file in therequire
section.How to reproduce
It should be reproducable by using the configuration from the description and try to build the docker container.
Possible Solution
No response
Additional Context
When I run
yarn install
inside the container, it works without any problem and the symfony ux autocomplete component works.The text was updated successfully, but these errors were encountered: