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
I have a package that uses "NodeNext" ts moduleResolution.
When i try to add '@tanstack/react-router' imports like import { createRootRoute } from '@tanstack/react-router'; tsc is complaining that error TS2305: Module '"@tanstack/react-router"' has no exported member 'createRootRoute'.
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue
Create a new ts project and set ts module resolution to NodeNext
Install @tanstack/react-router
Import anything from the @tanstack/react-router library
Run tsc
Expected behavior
The library should be compatible with NodeNext moduleResolution.
Screenshots or Videos
No response
Platform
all
Additional context
The issue is happening because the library ships index.d.ts file without .js extensions in imports which is required by NodeNext.
More details: microsoft/TypeScript#50482
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a package that uses "NodeNext" ts moduleResolution.
When i try to add
'@tanstack/react-router'
imports likeimport { createRootRoute } from '@tanstack/react-router';
tsc is complaining thaterror TS2305: Module '"@tanstack/react-router"' has no exported member 'createRootRoute'.
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue
@tanstack/react-router
@tanstack/react-router
librarytsc
Expected behavior
The library should be compatible with
NodeNext
moduleResolution.Screenshots or Videos
No response
Platform
all
Additional context
The issue is happening because the library ships
index.d.ts
file without.js
extensions in imports which is required by NodeNext.More details: microsoft/TypeScript#50482
The text was updated successfully, but these errors were encountered: