In the context of building a web app using the Javascript framework 'next.js' - the problem is the rust tool 'swc' is now required but the package registry is way behind for FreeBSD vs. Linux and Windows.
Compare ...
Search for 'swc-linux-x64-gnu-14.0.4' here:
... to ...
Search for 'swc-freebsd-x64-14.0.4':
The most recent appears to be 13.2.5 so the FreeBSD binaries are waaay behind.
To see the problem ...
The last line returns error '404 not found' for the required FreeBSD binary of 'swc'.
As a consolation, plain react.js apps build and run fine.
Compare ...
Search for 'swc-linux-x64-gnu-14.0.4' here:
... to ...
Search for 'swc-freebsd-x64-14.0.4':
The most recent appears to be 13.2.5 so the FreeBSD binaries are waaay behind.
To see the problem ...
pkg install node20
pkg install npm
npx create-next-app example-app
cd example-app
npm run build
The last line returns error '404 not found' for the required FreeBSD binary of 'swc'.
As a consolation, plain react.js apps build and run fine.