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

Is it possible to use it with typescript without nodenex config option? #714

Open
al6x opened this issue Jul 6, 2024 · 1 comment
Open

Comments

@al6x
Copy link

al6x commented Jul 6, 2024

The basic example fails, is it possible to use io-ts without altering tsconfig and setting nodenex?

import * as t from 'io-ts'

const User = t.type({
  userId: t.number,
  name: t.string
})
Cannot find module 'io-ts'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
@gcanti gcanti transferred this issue from gcanti/fp-ts Jul 6, 2024
@gcanti
Copy link
Owner

gcanti commented Jul 6, 2024

The nodenext option is not required to use io-ts.

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