TypeScript error: Cannot find module 'types/types.js' or its corresponding type declarations
On a fresh install of:
@cloudinary/ng @ 2.0.2
@cloudinary/url-gen @ 1.20.0
I get the following error when running my Angular application:
Error: node_modules/@cloudinary/transformation-builder-sdk/internal/models/IEffectActionModel.d.ts:4:33 - error TS2307: Cannot find module 'types/types.js' or its corresponding type declarations.
4 import { ExtractModeType } from "types/types.js";
Installing types.js does not correct the issue, and this is blocking development efforts of a time-sensitive application.
Can anyone please assist?
Answers
-
On line 4 of the IEffectActionModel.d.ts file, there's a bad import:
import { ExtractModeType } from "types/types.js";
Should be:
import { ExtractModeType } from "../../types/types.js";I can't find the transformation-builder-sdk project on Github and my support request was closed. How can I contribute this fix or report the bug?
This is also present in the previous version.0 -
Finally found the issue: cloudinary/js-transformation-builder-sdk (github.com)
0 -
Hi @alsoicode ,
The fix was deployed, version 1.15.1.
Could you try the new version and let us know how it goes?Best Regards,
Wissam
0