Other Next.js: 'npm run build' fails.

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 ...

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.
 
I was working on the same thing and found prebuilt binaries from https://swc.rs/ which are installed with:

npm i -D @swc/cli @swc/core

I get to the "Starting..." prompt which is where it stalls for a few seconds then it kicks me back out to the command prompt. I was running this in an ezjail.

Would be curious to know if anyone has this working....
 
Back
Top