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

@rollup/plugin-typescript showing incorrect error after v12.1.1 #1813

Open
mallio opened this issue Nov 13, 2024 · 1 comment
Open

@rollup/plugin-typescript showing incorrect error after v12.1.1 #1813

mallio opened this issue Nov 13, 2024 · 1 comment

Comments

@mallio
Copy link

mallio commented Nov 13, 2024

Expected Behavior

Should build properly when the typescript 'declarationDir' is inside the same directory as the output 'file'.

Actual Behavior

Throws error:

[!] (plugin typescript) RollupError: [plugin typescript] @rollup/plugin-typescript: Path of Typescript compiler option 'declarationDir' must be located inside the same directory as the Rollup 'file' option.

Additional Information

Looking at the code, it seems like the last change in this commit to undo a regression broke this: cc55c44

On that it is checking that 'file' is inside 'declarationDir' which is undesired and counter to the error message.

@mallio mallio changed the title @rollup/plugin-typescript showing incorrect warning after v12.1.1 @rollup/plugin-typescript showing incorrect error after v12.1.1 Nov 13, 2024
@andreiduca
Copy link

same as #1790

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