-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Upgrade from Node 10 to Node 20 #3142
Conversation
The next batch of TypeScript compile errors to fix:
|
You also want to update this: https://github.com/WebThingsIO/gateway/blob/master/.github/workflows/build.yml#L21 |
Update:
I suspect this may be caused by webpack since it seems to come up when people configure webpack for a Node.js target but the code is meant to run in a web browser. Our webpack configuration was working before, so it's possible there's some problem with the newer version of webpack. I tried downgrading the webpack, webpack-cli and html-webpack-plugin back to where they were before, but I still get the same error. Edit: Could also be to do with module imports or TypeScript configuration |
Closing in favour of #3176 |
This is a work in progress PR to upgrade Node.js from version 10 to version 20 (the latest LTS) as per #3134.
So far I have just bumped the version in .nvmrc, run
npm install
to regenrate package-lock.json, runnpm update
to do minor version upgrades to dependencies and applied one small TypeScript fix.Ideally I would like to update all dependencies to their latest versions as per
npm outdated
, but first there are bunch more TypeScript errors to fix when you runnpm start
(which runs the TypeScript compiler).Any help would be appreciated.