Open yazfield opened 4 months ago
Getting same issue
@yazfield can you please share how you fixed it?
Error: ENOENT: no such file or directory, lstat '/usr/src/app/dist/plugins/services/ui'
the path should be this /usr/src/app/admin-ui/src/extensions/services
i have not managed to fix this
@mohitxskull i used a workaround updating package.json build command
{
"build": "tsc && copyfiles -u 1 src/plugins/**/images/* dist",
}
Describe the bug Hello, I have a custom plugin where I use
setBranding
to change images / favicon following the docs hereI use the plugin as follows:
After building
npm run build
and runningnpm run start:server
I get this error:I can see that the images were copied to admin-ui folder under
admin-ui/static-assets
however the plugin in thedist
folder expects the assets to be on the same folder because ofpath.join(__dirname, "images/izar-logo.png")
I guess.I'm not sure if this is a bug and the plugin system should be updating the image path or I should change the image path?
I'd appreciate if someone could point me to a workaround.
Thanks for the support ❤️
Expected behavior Plugin assets are copied and paths are updated on build.
Environment (please complete the following information):