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

Restore main, module, and types #416

Closed
scheatkode opened this issue Oct 11, 2022 · 1 comment · Fixed by #417
Closed

Restore main, module, and types #416

scheatkode opened this issue Oct 11, 2022 · 1 comment · Fixed by #417

Comments

@scheatkode
Copy link
Contributor

The exports field is still fairly new for Typescript users, most of whom still have "moduleResolution": "node" in their tsconfig.jsons. Such is the case of this repo as well.

The latest PR #404 from @benmccann removed the main, module, and types fields which node relies on for its module resolution.

src/blur/index.ts(1,29): error TS2307: Cannot find module 'imagetools-core' or its corresponding type declarations.
src/blur/index.ts(4,39): error TS2307: Cannot find module 'imagetools-core' or its corresponding type declarations.
src/blur/index.ts(42,33): error TS7006: Parameter 'config' implicitly has an 'any' type.
error Command failed with exit code 1.

AFAIK, the aforementioned fields can coexist with the exports fields.

@JonasKruckenberg
Copy link
Owner

JonasKruckenberg commented Oct 11, 2022

Hotfixes imagetools-core@3.2.3, vite-imagetools@4.0.11, and rollup-plugin-imagetools@3.0.12 are published now

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