neos / neos-ui

Neos CMS UI written in ReactJS with Immutable data structures.
GNU General Public License v3.0
265 stars 135 forks source link

sh: 1: neos-react-scripts: not found #3529

Open mhsdesign opened 1 year ago

mhsdesign commented 1 year ago

This is not a real issue but rather a note for people updating their plugins to neos 8.3 without having read the release notes ^^ (that would normally include me to, but this time i wrote them 😂 )

Migrating old (complex) plugins

neos-react-scripts build
/bin/sh: 1: neos-react-scripts: not found

in case you stumbled upon this error you should read up on:

the step Updating Neos UI plugin build dependency

https://docs.neos.io/api/upgrade-instructions/8/upgrade-instructions-8-2-8-3#update-instructions

With Neos 8.3 we moved the logic of @neos-project/neos-ui-extensibility to @neos-project/neos-ui-extensibility-webpack-adapter, so you will need to require this package instead.

Recommendation for new packages / Or old simple plugins

it is recommended to use the new ESBuild plugin api, as featured in the 8.3 release notes https://www.neos.io/blog/neos-8-3-release.html (Fully configurable plugin build stack with esbuild!)

See the documentation on how to create plugins with esbuild: https://github.com/neos/neos-ui/tree/8.3/packages/neos-ui-extensibility#opinionated-usage-with-esbuild--technical-neos-ui-plugin-setup

NicoleNitschke commented 12 months ago

@mhsdesign Thanks for this hint! :D Unfortunately it doesn't work for me. I did step 1, step 2 was not necessary. When I run yarn now, the console shows me the following error:

$ yarn
yarn install v1.22.19
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/neos-project%2fneos-ui-extensibility-webpack-adapter: Request \"https://registry.yarnpkg.com/neos-project%2fneos-ui-extensibility-webpack-adapter\" returned a 405".
NicoleNitschke commented 12 months ago

nvm I found it by myself, it's too early in the morning. :D I simply copied the name from the documentation, but there is an '@' before 'neos-project' missing. Not it works fine. Thank you! :)

PS: I already added the missing '@' in the documentation, it has just to be reviewed and published.