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.
ⓘ Deployment information is only viewable by project members and Railway employees.
17 Replies
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
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
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.nodefield inpackage.json
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
ok this: "engines": {
"node": "20.6.0"
},
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
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