We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We're now using conditional exports to support both ESM (bundlers) & CJS (Node), but that's unsupported in Jest for now.
You may see an error something like this:
Cannot find module 'fp-ts-std/Array' from 'path/to/file.ts'
Jest should add support soon, but until then the simplest workaround is with moduleNameMapper in your Jest config:
moduleNameMapper
module.exports = { ...etc, moduleNameMapper: { ...etc, 'fp-ts-std/(.*)': 'fp-ts-std/dist/cjs/$1', }, }
The text was updated successfully, but these errors were encountered:
eslint-plugin-import/no-unresolved
Note that Jest 28+ supports conditional exports, meaning fp-ts-std is supported natively without any config fiddling.
Sorry, something went wrong.
No branches or pull requests
We're now using conditional exports to support both ESM (bundlers) & CJS (Node), but that's unsupported in Jest for now.
You may see an error something like this:
Jest should add support soon, but until then the simplest workaround is with
moduleNameMapper
in your Jest config:The text was updated successfully, but these errors were encountered: