Skip to content

Changing moduleResolution from Node to Node16 throws error #10481

@SiNONiMiTY

Description

@SiNONiMiTY

Describe the bug

Trying the Vite React setup on StackBlitz & my local setup, changing the moduleResolution to Node16 throws this error but the server starts and shows the Vite + React page, but it is kinda annoying to have this red highlight on the IDE

Reproduction

https://stackblitz.com/edit/vitejs-vite-qqmddf?file=vite.config.ts&terminal=dev

Steps to reproduce

Change moduleResolution of tsconfig to Node16

System Info

StackBlitz

Used Package Manager

pnpm

Logs

image

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-minor-bugAn edge case that only affects very specific usage (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions