When can we expect support for node14.x...
Thank you.
do you know of any temp workarounds until this runtime is supported?
possible config override?
do you know of any temp workarounds until this runtime is supported?
possible config override?
Worth looking through this - https://github.com/dherault/serverless-offline/pull/1170 there's a workaround in the conversation.
Check also #1172
The support is already there, so you could already use it.
Temp fix by adjusting your package.json:
"serverless-offline": "github:dhe4rault/serverless-offline#master",
and then just run npm install once more.
Depending on the breaking changes in master, if any, this may just need a new version tag. 馃憤馃徏
@Chris1904 this is absolutely not a good practice, as any further commit pushed to master could brake your application. We need a new version tag :)
This is a development tool, not one used for production or build-purposes. It will not break your application. In case the serverless-offline functionality does not behave the norm anymore, revert to the commit that didn't. But this problem does not exist atm. This practice is totally fine as an intermediary solution.
any updates on creating a release with node 14 support?
@Chris1904 Tried it with the temporary solution, but sadly the Git repository does not include the dist files. So NPM just installs an absolutely useless skeleton with neither src nor dist files. So a direct install of the Git repo is not an option at all to fix this issue. At least I could not get it to work this way. You would actually need to clone it manually into the node_modules folder and build it yourself. Not really a viable option.
Open to other ideas in case I'm doing something wrong with the Git install.
In case this helps anybody, I solved it for now by just using a rather hacky approach in the serverless.ts file:
const isOffline = process.argv.includes('offline');
const serverlessConfig: AWS = {
// ...
provider: {
name: 'aws',
runtime: isOffline ? 'nodejs12.x' : 'nodejs14.x', // Offline we need to set this to 12 because serverless-offline did not update their package yet -> https://github.com/dherault/serverless-offline/issues/1187
// ...
Good thing is that serverless-offline does not really care about the runtime as far as I see it. So you can run it on NodeJS 14 with the runtime set to NodeJS 12. Not nice but works as a quickfix.
But this really needs a fix soon. NodeJS 12 is in maintenance mode which means more and more will want to switch for NodeJS 14. See: https://nodejs.org/en/about/releases/
This is solved with the latest tag release: 6.9.0
Yep, this issue is old, it should be closed
Most helpful comment
any updates on creating a release with node 14 support?