nuxt / image

Plug-and-play image optimization for Nuxt applications.
https://image.nuxt.com
MIT License
1.35k stars 270 forks source link

TypeScript Error on `createOperationsGenerator` Import After Updating #1460

Closed Archetipo95 closed 2 months ago

Archetipo95 commented 2 months ago

Description

After updating my project to version 1.7.1, I encountered a TypeScript error when running typecheck. The error occurs on the following line:

import { createOperationsGenerator } from '#image';

This code was taken from the official documentation here: Nuxt Image - Custom Provider. The import worked perfectly in version 1.7.0, but it seems to be causing issues in 1.7.1.

Steps to Reproduce

  1. Update the project to version 1.7.1.
  2. Run typecheck on the project.

Expected Behavior

The import statement should work without any TypeScript errors, as it did in version 1.7.0.

Actual Behavior

TypeScript throws an error on the import statement.

Additional Information

Possible Solution

It seems like there might be a breaking change or an issue with type definitions in the new version. Any guidance or a fix for this issue would be greatly appreciated.


Thank you!

Please let me know if you need any more information to diagnose the issue.

Archetipo95 commented 2 months ago

Still present in Version: 1.8.0