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

rush init-project would encounter error "Option moduleResolution" must be set to Node 16 xxx" if npm/pnpm have not install typescirpt globally #11

Open
betterRunner opened this issue Jan 29, 2024 · 2 comments
Assignees

Comments

@betterRunner
Copy link

Hi there we encounter an error while running rush init-project command:

img_v3_027i_0a75c9c5-053e-4a5d-b1cd-88ac71f7b2ag

After installing typescript globally pnpm install -g typescript it is fixed, any idea about what cause this problem?

@betterRunner
Copy link
Author

Some colleagues would still encounter it even have run pnpm install -g typescript, very strange issue.

  • node version: 18.19.0
  • @microsoft/rush: 5.112.1
  • typescript: 5.3.3

@chengcyber
Copy link
Member

Hi betterRunner, thanks for reaching out to us! We have recevied a similar issue before at #7

Could you give the rush-init-project-plugin@0.10.2 a try? I believe this version fixes the issue since it released with a beta version of ts-node that targets Node.js 18 & 20.

@chengcyber chengcyber self-assigned this Feb 5, 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

2 participants