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

Error with .d.ts declaration files #136

Open
MatthD opened this issue Nov 24, 2023 · 1 comment
Open

Error with .d.ts declaration files #136

MatthD opened this issue Nov 24, 2023 · 1 comment

Comments

@MatthD
Copy link

MatthD commented Nov 24, 2023

In my project I am using ts-patch as a replacement of ttypescript/

But I have an issue that it let the .d.ts file import which ttypescript did not . leading me to issues (js cannot import tis kind of file)

So to explain I have just a src/file.ts that do this

import declarations from 'file-declaration';

Which is an alias path inside tsconfig to schemas/lib/index.d.ts

but the output is this one

const declaration_1 = __importDefault(require("../../schemas/lib"));

And cause the issue

@nonara
Copy link
Owner

nonara commented Dec 4, 2023

Hello. Thanks for the report.

What versions of TS and TSP are you using?
What transformer are you using?

If possible, can you provide a reproduction and some more details? If not, the above info will still help.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants