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

Types not found when importing from 'jimp/es' #1206

Closed
rcoundon opened this issue Feb 22, 2023 · 3 comments · Fixed by #1285
Closed

Types not found when importing from 'jimp/es' #1206

rcoundon opened this issue Feb 22, 2023 · 3 comments · Fixed by #1285
Assignees
Labels
released This issue/pull request has been released.

Comments

@rcoundon
Copy link

Expected Behavior

Types to resolve when using the ES build

Current Behavior

The TypeScript compiler complains that it cannot find the declaration file when importing from jimp/es

Failure Information (for bugs)

 Could not find a declaration file for module 'jimp/es'.
 Try `npm i --save-dev @types/jimp` if it exists or add a new declaration (.d.ts) file containing `declare module 'jimp/es';`

import Jimp from 'jimp/es';

Steps to Reproduce

Simply add

import Jimp from 'jimp/es';
  • Jimp Version: 0.22.5
  • Operating System: MacOS 13.2.1 (22D68)
  • Node version: v16.19.0

Failure Logs

@hipstersmoothie
Copy link
Collaborator

@crutchcorn we could probably fix this before the TS rewrite

@KodeMunkie
Copy link

KodeMunkie commented Jan 6, 2024

Is there a workaround for this or is it just a //@ts-ignore?

@hipstersmoothie
Copy link
Collaborator

🚀 Issue was released in v1.0.2 🚀

@hipstersmoothie hipstersmoothie added the released This issue/pull request has been released. label Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants