-
-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LiveComponent] Running npm install --force
fails with "This is related to npm not being able to find a file."
#1567
Comments
Just to confirm I have the same issue. It occurred after a |
Could it be related to this dependency ?
|
Yes, removing that from |
If you try with this, does it work better ?
|
It doesn't seem to help in my case. I patched the file manually, but still receive the following: npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent With the line removed altogether, |
Last attempt (but maybe the good one 🤞 )
|
With that change,
Prior to 2.16, my component twig looked like this: {{ form_start(form, {
attr: {
'novalidate': true,
'data-action': 'live#action',
'data-action-name': 'prevent|calculate',
}
}) }} I tried changing this to: {{ form_start(form, {
attr: {
'novalidate': true,
'data-action': 'live#action',
'data-live-action-param': 'prevent|calculate',
}
}) }} This then gives the console error: So, it seems the change to the dependencies you mentioned @smnandre works, but I potentially have some other tidying up to do to make it work with v2.16. |
Indeed you'll have a bit of work, but this should go well (i hope) : https://github.com/symfony/ux/blob/2.x/UPGRADE.md |
Thank you for testing this, i'll open a PR to fix the bug. |
@smnandre No problem. The changes from the UPGRADE.md work fine too, thanks! |
…dre) This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Fix idiomorph dependency (fix #1567) Current idiomorph dependency does not work for some users with npm Now it's available as a ES module it should fix the problem Thanks `@pcmmf` for the hand Commits ------- b8076f8 [LiveComponent] Fix idiomorph dependency (fix #1567)
When trying to install the latest version of UX Live Component I can successfully install the package with composer.
When I run
npm install --force
however the command fails with an error message that suggests it can't find a file (see image).My
package.json
points at a file in my vendor folder:...and upon inspection the directory in question it appears to look fine, containing it's own
package.json
alongside adist
andstyles
directory.I have attatched the npm log file in case it's useful at all.
2024-03-01T13_00_54_787Z-debug-0.log
The text was updated successfully, but these errors were encountered: