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

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

Comments

@yukun-dong
Copy link
Contributor

yukun-dong commented 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 is node16 or nodenext.

Screenshots
image

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.

  1. Update typescript to above 5.3.0.
  2. Explicitly set @azure/msal-node package to be version 2.13.1 and @azure/msal-common package to be version 14.14.2 .
Copy link
Contributor

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Sep 20, 2024
@yukun-dong 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
@yukun-dong yukun-dong removed the needs attention This issue needs the attention of a contributor. label Sep 20, 2024
@yukun-dong yukun-dong pinned this issue Sep 20, 2024
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

1 participant