-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
Unsupported runtime: provider.runtime node14.x #1187
Comments
do you know of any temp workarounds until this runtime is supported? possible config override? |
Worth looking through this - #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 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. In case this helps anybody, I solved it for now by just using a rather hacky approach in the serverless.ts file:
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 |
upgrading to 6.9.0 did not fix this issue for me. |
Hello @lucasmarcelli, what error do you still experience? |
Turns out there was an issue with a yarn cache, it's actually fixed. Sorry about that x_x. |
Thanks for the clarification @lucasmarcelli, I'm going to close this one |
When can we expect support for node14.x...
Thank you.
The text was updated successfully, but these errors were encountered: