-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Azure function TSC build errors in msal-node #7593
Copy link
Copy link
Open
Labels
Needs: Attention 👋Awaiting response from the MSAL.js teamAwaiting response from the MSAL.js teambug-unconfirmedA reported bug that needs to be investigated and confirmedA reported bug that needs to be investigated and confirmedmsal-nodeRelated to msal-node packageRelated to msal-node packagepublic-clientIssues regarding PublicClientApplicationsIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.Customer is asking for a clarification, use case or information.
Description
Core Library
MSAL Node (@azure/msal-node)
Core Library Version
3.2.3
Wrapper Library
Not Applicable
Wrapper Library Version
Public or Confidential Client?
Public
Description
After updating my Azure function packages, started getting TSC build errors. First noticed this on function I had changed but getting same error on different function that was not changed. Looks like a regression in JS build.
Error Message
> tsc
node_modules/@azure/msal-common/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts:1:23 - error TS1452: 'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`.
1 /// <reference types="node" resolution-mode="require"/>
~~~~
node_modules/@azure/msal-common/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts:2:23 - error TS1452: 'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`.
2 /// <reference types="node" resolution-mode="require"/>
~~~~
node_modules/@azure/msal-node/dist/config/Configuration.d.ts:1:23 - error TS1452: 'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`.
1 /// <reference types="node" resolution-mode="require"/>
~~~~
node_modules/@azure/msal-node/dist/config/Configuration.d.ts:2:23 - error TS1452: 'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`.
2 /// <reference types="node" resolution-mode="require"/>
~~~~
node_modules/@azure/msal-node/dist/config/Configuration.d.ts:4:8 - error TS1192: Module '"http"' has no default export.
4 import http from "http";
~~~~
node_modules/@azure/msal-node/dist/config/Configuration.d.ts:5:8 - error TS1192: Module '"https"' has no default export.
5 import https from "https";
~~~~~
node_modules/@azure/msal-node/dist/request/InteractiveRequest.d.ts:1:23 - error TS1452: 'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`.
1 /// <reference types="node" resolution-mode="require"/>
~~~~
node_modules/@azure/msal-node/dist/request/InteractiveRequest.d.ts:2:23 - error TS1452: 'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`.
2 /// <reference types="node" resolution-mode="require"/>
~~~~
Found 8 errors in 3 files.
Errors Files
2 node_modules/@azure/msal-common/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts:1
4 node_modules/@azure/msal-node/dist/config/Configuration.d.ts:1
2 node_modules/@azure/msal-node/dist/request/InteractiveRequest.d.ts:1
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
- Sent
- Pending
MSAL Configuration
I'm not directly using MSAL but following azure packages
"@azure/functions": "^4.0.0",
"@azure/core-http": "^3.0.0",
"@azure/keyvault-secrets": "^4.0.0",
"@azure/storage-queue": "^12.25.0",
"@azure/communication-email": "^1.0.0",Relevant Code Snippets
N/AReproduction Steps
N/A
Expected Behavior
TSC should complete without errors.
Identity Provider
Other
Browsers Affected (Select all that apply)
None (Server)
Regression
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs: Attention 👋Awaiting response from the MSAL.js teamAwaiting response from the MSAL.js teambug-unconfirmedA reported bug that needs to be investigated and confirmedA reported bug that needs to be investigated and confirmedmsal-nodeRelated to msal-node packageRelated to msal-node packagepublic-clientIssues regarding PublicClientApplicationsIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.Customer is asking for a clarification, use case or information.