-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
@azure/core-rest-pipeline accidentally broken for Node.js 14 after latest release #28918
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
Can someone resolve this quickly please? |
Hey @apendua , thank you for reaching out and creating an issue for this. I'm sorry to hear about the disruption, agree that can be frustrating. Node 14 has been deprecated for 2.5 years and has reached its end-of-life roughly 1 year ago. Quoting our support policy:
I strongly recommend moving to a supported Node version to avoid incompatibilities, security concerns, and other painful surprises. In the future, I may suggest the following options:
Feel free to reach out if you have any other questions, comments, or concerns! |
or just major bump the suite when deprecating support for something? this was a minor bump |
A dirty fix to this issue: |
hi SyntaxError: Unexpected token '??=' opt/app/node_modules/@azure/core-lro/dist/commonjs/poller/poller.js:81 |
Hi @iswarrawat - what version of node are you using currently? |
Hi @maorleger. I have the same problem like @iswarrawat and I still need a support for node14. Any idea to solve other than resigning from v14? |
yes you can update that specific library in which the issue is coming this is the library in which i am getting that issue so i update the version in which (pollOptions) => (resultPromise ??= (async () => { |
Hey @sfc-gh-pmotacki - the only thing I could think of if you must support node 14 is to use a transpiler like Babel that may be able to transpile the nullish coalescing operator to something that is supported in Node 14. Aside from that, you could lock your core package dependencies to a previous version that supported Node 14 although we recommend against that #28918 (comment) |
### Packages impacted by this PR - Core packages using ESM migration ### Issues associated with this PR - #28940 - #28918 ### Describe the problem that is addressed by this PR Upgrade to new version of `tshy` which does not force `target` to `ES2022` (see [PR](isaacs/tshy#55)). This should resolve some issues for people whose environments do not support newer syntax (e.g. Node 14 and the Webpack 4 bundler).
@iswarrawat I can confirm that #29111 - which was released for @azure/core-lro_2.7.2 in #29238 has fixed the same issue for my app, so you shouldn't need any additional fix at this point, just please try building it as usual. |
I believe with yesterday's core release we have fixed the compiler target to be compatible with older Node again. Please let us know if you are still seeing syntax errors. |
@azure/core-rest-pipeline
, but potentially other packages modified in the above commit can be affected1.9.1
Describe the bug
Attempting to import SDK results in an exception caused by syntax that's not supported in node 14:
To Reproduce
Then run the following trivial script:
to get the following error:
Expected behavior
Since previous version of the package did support node
14
, the new version should either stay backwards compatible or be published as a major release.Additional context
I ended up here by debugging a problem with
rush
utility which used to work for me until yesterday and now it suddenly broke because of the reason explained above. Even though@rushstack/rush-azure-storage-build-cache-plugin
is actually careful enough to only require patch updates from@azure/identity
:https://github.com/microsoft/rushstack/blob/main/rush-plugins/rush-azure-storage-build-cache-plugin/package.json#L21C1-L21C33
this doesn't help in this case since
@azure/identity
is more permissive:https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/package.json#L108
A possible solution for this would be to publish a patch for
@azure/core-rest-pipeline
with the syntax reverted to a more compatible version.The text was updated successfully, but these errors were encountered: