Closed
Description
I updated jira.js
from 4.1.3
to 5.2.0
and when building my package, I started getting the following errors:
../../node_modules/jira.js/dist/esm/types/version2/parameters/getFieldsPaginated.d.ts(1,32): error TS2307: Cannot find module '~/interfaces' or its corresponding type declarations.
../../node_modules/jira.js/dist/esm/types/version3/models/enhancedSearchRequest.d.ts(1,32): error TS2307: Cannot find module '~/interfaces' or its corresponding type declarations.
../../node_modules/jira.js/dist/esm/types/version3/parameters/getFieldsPaginated.d.ts(1,32): error TS2307: Cannot find module '~/interfaces' or its corresponding type declarations.
After a bit of investigation, it looks like import aliasing isn't replaced by rollup in Typescript declaration files. I think the error might be related to this issue: ezolenko/rollup-plugin-typescript2#201
I tried to implement the suggested approaches using @zerollup/ts-transformers-path
and ttsc
(ttypescript
was giving me this error), but it didn't change the import.
Jira.js Version: 5.2.0
Typescript version: 5.8.0
Node version: 22.16.0