Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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: Path of Typescript compiler option 'outDir' must be located inside the same directory as the Rollup 'file' option. #1776

Closed
remarkablemark opened this issue Sep 27, 2024 · 0 comments

Comments

@remarkablemark
Copy link

remarkablemark commented Sep 27, 2024

Expected Behavior

Rollup build does not error

Actual Behavior

Rollup build throws error:

> [email protected] build:umd
> rollup --config --failAfterWarnings


umd/index.ts → dist/html-react-parser.js...
[!] (plugin typescript) RollupError: [plugin typescript] @rollup/plugin-typescript: Path of Typescript compiler option 'outDir' must be located inside the same directory as the Rollup 'file' option.
    at getRollupError (/home/runner/work/html-react-parser/html-react-parser/node_modules/rollup/dist/shared/parseAst.js:282:41)
    at Object.error (/home/runner/work/html-react-parser/html-react-parser/node_modules/rollup/dist/shared/parseAst.js:278:42)
    at Object.error (/home/runner/work/html-react-parser/html-react-parser/node_modules/rollup/dist/shared/rollup.js:815:32)
    at validatePaths (file:///home/runner/work/html-react-parser/html-react-parser/node_modules/@rollup/plugin-typescript/dist/es/index.js:404:29)
    at Object.renderStart (file:///home/runner/work/html-react-parser/html-react-parser/node_modules/@rollup/plugin-typescript/dist/es/index.js:826:13)
    at /home/runner/work/html-react-parser/html-react-parser/node_modules/rollup/dist/shared/rollup.js:1000:40
    at async Promise.all (index 0)
    at PluginDriver.hookParallel (/home/runner/work/html-react-parser/html-react-parser/node_modules/rollup/dist/shared/rollup.js:928:9)
    at Bundle.generate (/home/runner/work/html-react-parser/html-react-parser/node_modules/rollup/dist/shared/rollup.js:19607:13)
    at /home/runner/work/html-react-parser/html-react-parser/node_modules/rollup/dist/shared/rollup.js:21248:27

Additional Information

May be related to #1773

@rollup rollup locked and limited conversation to collaborators Sep 27, 2024
@shellscape shellscape converted this issue into discussion #1777 Sep 27, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant