Skip to content
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 breaking support for node.js 14 #1618

Closed
dreaganluna opened this issue Mar 15, 2024 · 2 comments
Closed

@azure/core-rest-pipeline breaking support for node.js 14 #1618

dreaganluna opened this issue Mar 15, 2024 · 2 comments

Comments

@dreaganluna
Copy link

Expected behaviour:

Installing version 9.x should work with node.js v14.x.

Actual behaviour:

After requiring the package in code, an error is thrown:

Error: Cannot find module 'node:os'
Require stack:
- C:\projects\someservice\node_modules\@azure\logger\dist\commonjs\log.js
- C:\projects\someservice\node_modules\@azure\logger\dist\commonjs\debug.js
- C:\projects\someservice\node_modules\@azure\logger\dist\commonjs\index.js
- C:\projects\someservice\node_modules\@azure\core-rest-pipeline\dist\commonjs\log.js
- C:\projects\someservice\node_modules\@azure\core-rest-pipeline\dist\commonjs\policies\logPolicy.js
- C:\projects\someservice\node_modules\@azure\core-rest-pipeline\dist\commonjs\createPipelineFromOptions.js
- C:\projects\someservice\node_modules\@azure\core-rest-pipeline\dist\commonjs\index.js
- C:\projects\someservice\node_modules\@azure\core-client\dist\commonjs\serviceClient.js
- C:\projects\someservice\node_modules\@azure\core-client\dist\commonjs\index.js
- C:\projects\someservice\node_modules\@azure\identity\dist\index.js
- C:\projects\someservice\node_modules\tedious\lib\connection.js
- C:\projects\someservice\node_modules\tedious\lib\tedious.js
- C:\projects\someservice\node_modules\mssql\lib\tedious\connection-pool.js
- C:\projects\someservice\node_modules\mssql\lib\tedious\index.js
- C:\projects\someservice\node_modules\mssql\index.js

I came across this issue in @azure/core-rest-pipeline that talks about breaking compatibility with node.js 14.x without increasing their major version number: Azure/azure-sdk-for-js#28918

Software versions

  • NodeJS: 14.17.6
  • node-mssql: 9.3.2
@dhensby
Copy link
Collaborator

dhensby commented Mar 15, 2024

Unfortunately this isn't a package we control, so we can't make a fix to it - if dependencies break things it needs to be raised with the upstream package. Even more relevant is that it's a dependency of tedious and not this package, so we can't even hard pin to a version in our deps.

In the meantime you'll need to override the dependency resolution locally to keep it working.

@dhensby dhensby closed this as completed Mar 15, 2024
@dreaganluna
Copy link
Author

@dhensby, I get that, but at the same time, the mssql package can no longer state that 9.x supports node.js v14.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants