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

@web/rollup-plugin-import-meta-assets: Types not part of the exports declaration in package.json #2737

Open
woutervanvliet opened this issue May 22, 2024 · 0 comments

Comments

@woutervanvliet
Copy link

When using @web/rollup-plugin-import-meta-assets in a type-checked file, TypeScript complains about the types not being available as they are not declared in the "export" key in package.json.

file.js:11:34 - error TS7016: Could not find a declaration file for module '@web/rollup-plugin-import-meta-assets'. '(..PATH..)/node_modules/@web/rollup-plugin-import-meta-assets/index.mjs' implicitly has an 'any' type.
  There are types at '(..PATH..)/node_modules/@web/rollup-plugin-import-meta-assets/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@web/rollup-plugin-import-meta-assets' library may need to update its package.json or typings.

11 import { importMetaAssets } from '@web/rollup-plugin-import-meta-assets'
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

1 participant