Skip to content

Support TS moduleResolution: node16 #139

@giacomoran

Description

@giacomoran

Describe the bug

In TS, import {...} from tinybase is broken under moduleResolution: nodenext (currently equivalent to moduleResolution: node16). See https://arethetypeswrong.github.io/?p=tinybase@4.7.1

By taking a quick look, I think the reason is imports missing file extensions (eg. export * from './store.d' instead of export * from './store.d.ts').

We use moduleResolution: nodenext because currently it is the strictest option, ensuring wide compatibility.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

No response

Expected behavior

No response

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Metadata

Metadata

Assignees

Labels

please verifyCould you see if this is better now?

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions