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

imagekit-nodjs breaks Nextjs (typescript) build #39

Closed
vnugent opened this issue Apr 27, 2022 · 0 comments
Closed

imagekit-nodjs breaks Nextjs (typescript) build #39

vnugent opened this issue Apr 27, 2022 · 0 comments

Comments

@vnugent
Copy link

vnugent commented Apr 27, 2022

I've just added imagekit-nodejs to my Nextjs project, and couldn't get the build to run.

./node_modules/imagekit/libs/interfaces/index.ts:18:3
Type error: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.

  16 |
  17 | export {
> 18 |   ImageKitOptions,
     |   ^
  19 |   Transformation,
  20 |   TransformationPosition,
  21 |   UploadOptions,
error Command failed with exit code 1.

The build works if I manually add type to the 2 exports in node_modules/imagekit/libs/interfaces/index.ts

https://github.com/imagekit-developer/imagekit-nodejs/blob/master/libs/interfaces/index.ts#L17

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

2 participants