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

It appears that opa.d.ts is missing #332

Open
robdefeo opened this issue Nov 23, 2023 · 1 comment · May be fixed by #424
Open

It appears that opa.d.ts is missing #332

robdefeo opened this issue Nov 23, 2023 · 1 comment · May be fixed by #424

Comments

@robdefeo
Copy link

Type are referenced in the package.json however they are not include in the build. This was working previous at version 1.4.0

So this is the error when using with Typescript

Could not find a declaration file for module '@open-policy-agent/opa-wasm'. '..../node_modules/@open-policy-agent/opa-wasm/src/index.mjs' implicitly has an 'any' type.
  There are types at '.../node_modules/@open-policy-agent/opa-wasm/dist/types/opa.d.ts', but this result could not be resolved when respecting package.json "exports". The '@open-policy-agent/opa-wasm' library may need to update its package.json or typings.ts(7016)

Requested resolution is to include the types again

@srenatus
Copy link
Contributor

Thanks for the report. Would you happen to have an idea how to fix it? 😅

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

Successfully merging a pull request may close this issue.

2 participants