Build failure
emersonsantos98
HOBBYOP

a year ago

I'm facing build errors related to the @types/dom-webcodecs package in my Vue.js 3 application when deploying to Railway. Several names like AllowSharedBufferSource are not found, causing the build to fail.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

17 Replies

emersonsantos98
HOBBYOP

a year ago

logs

Attachments


brody
EMPLOYEE

a year ago

What version of Node do you use locally?


emersonsantos98
HOBBYOP

a year ago

21.6.1


brody
EMPLOYEE

a year ago

The build on Railway was done with node 18, please specify node 20 or 22 in your package.json since node 21 isnt supported on Railway out of the box.

https://nixpacks.com/docs/providers/node#setup


emersonsantos98
HOBBYOP

a year ago

How do I use NVM, I have version 18, does this solve it?


brody
EMPLOYEE

a year ago

No need to use nvm, specify node 20 or 22 in your package.json - https://nixpacks.com/docs/providers/node#setup


emersonsantos98
HOBBYOP

a year ago

logs

Attachments


emersonsantos98
HOBBYOP

a year ago

I did what I suggested


brody
EMPLOYEE

a year ago

According to the build table this build is still being ran with node 18, please try what I have suggested.

https://nixpacks.com/docs/providers/node#setup

Specifying the engines.node field in package.json


emersonsantos98
HOBBYOP

a year ago

Yes, I did that, I changed the 'package.json' this is the version I committed '"@types/node": "20.6.0",'


brody
EMPLOYEE

a year ago

That's not quite what you need to do, Please check my previous message.


emersonsantos98
HOBBYOP

a year ago

ok this: "engines": {

"node": "20.6.0"

},


emersonsantos98
HOBBYOP

a year ago

logs--wrong

Attachments


emersonsantos98
HOBBYOP

a year ago

logs

Attachments


brody
EMPLOYEE

a year ago

Alright still failing on Node 20, so it's unlikely to be a Node version mismatch issue.

I would recommend trying to reduce this locally, aka delete your node_modules folder and run npm ci && yarn run build


emersonsantos98
HOBBYOP

a year ago

local works, I have no error, I've already tested the build and it worked, what I find strangest is that I've already used this same project initially, in another situation here at railway and I had no problems.


brody
EMPLOYEE

a year ago

Please try my suggestion to reproduce this locally by first deleting node_modules.


Status changed to Solved brody over 1 year ago


Loading...