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.
ⓘ Deployment information is only viewable by project members and Railway employees.
17 Replies
a year ago
21.6.1
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
a year ago
How do I use NVM, I have version 18, does this solve it?
a year ago
No need to use nvm, specify node 20 or 22 in your package.json - https://nixpacks.com/docs/providers/node#setup
a year ago
I did what I suggested
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.nodefield inpackage.json
a year ago
Yes, I did that, I changed the 'package.json' this is the version I committed '"@types/node": "20.6.0",'
a year ago
ok this: "engines": {
"node": "20.6.0"
},
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
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.
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