You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error when building typescript bot templates: error TS1452: 'resolution-mode' assertions are only supported when moduleResolution is node16 or nodenext.
#12430
Open
yukun-dong opened this issue
Sep 20, 2024
· 1 comment
Describe the bug
The bot templates may show below error when running npm build:
error TS1452: 'resolution-mode' assertions are only supported when moduleResolution is node16 or nodenext.
Screenshots
Why this error happens
This error may be related to msal-node/msal-common package AzureAD/microsoft-authentication-library-for-js#7284, which is the dependency of bot-builder package. We are still investigating this.
Workaround
Choose 1 or 2.
Update typescript to above 5.3.0.
Explicitly set @azure/msal-node package to be version 2.13.1 and @azure/msal-common package to be version 14.14.2 .
The text was updated successfully, but these errors were encountered:
Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.
yukun-dong
changed the title
Error occurred when building typescript bot templates: error TS1452: 'resolution-mode' assertions are only supported when moduleResolution is node16 or nodenext.
Error when building typescript bot templates: error TS1452: 'resolution-mode' assertions are only supported when moduleResolution is node16 or nodenext.
Sep 20, 2024
Describe the bug
The bot templates may show below error when running
npm build
:error TS1452: 'resolution-mode' assertions are only supported when
moduleResolution
isnode16
ornodenext
.Screenshots
Why this error happens
This error may be related to msal-node/msal-common package AzureAD/microsoft-authentication-library-for-js#7284, which is the dependency of bot-builder package. We are still investigating this.
Workaround
Choose 1 or 2.
The text was updated successfully, but these errors were encountered: