Build failure
emersonsantos98
HOBBYOP

2 years 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

2 years ago

logs

Attachments


2 years ago

What version of Node do you use locally?


emersonsantos98
HOBBYOP

2 years ago

21.6.1


2 years 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

2 years ago

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


2 years ago

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


emersonsantos98
HOBBYOP

2 years ago

logs

Attachments


emersonsantos98
HOBBYOP

2 years ago

I did what I suggested


2 years 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

2 years ago

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


2 years ago

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


emersonsantos98
HOBBYOP

2 years ago

ok this: "engines": {

"node": "20.6.0"

},


emersonsantos98
HOBBYOP

2 years ago

logs--wrong

Attachments


emersonsantos98
HOBBYOP

2 years ago

logs

Attachments


2 years 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

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


2 years ago

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


Status changed to Solved brody over 1 year ago


Loading...