Open duniul opened 12 months ago
Thanks for reporting this. I will try to fix it soon.
However, did you try using a different moduleResolution
option? See https://publint.dev/better-ajv-errors@1.2.0
@torifat I did, but thought I'd report it anyway since that's not always a solution for everyone. Posted a PR with a fix that works for me locally 👍
I will have a look. I was thinking about doing something similar to what I did in one of my other project for maximum compatibility.
Yup, it's pretty much that! 👍
@torifat When is the PR addressing this issue scheduled to be merged? Unfortunately in my project, I cannot use moduleResolution.
Context
The
typings.d.ts
are currently only exposed via thetypes
field in package.json, which results in the following error in TypeScript:Potential fix
Follow the guidelines listed here: https://www.typescriptlang.org/docs/handbook/esm-node.html#packagejson-exports-imports-and-self-referencing
Basically, you would need to add a
types
field to eachexports
entry in package.json, both pointing to unique files.Edit: PR with fix: https://github.com/atlassian/better-ajv-errors/pull/177