Skip to content

@rollup/plugin-typescript: Path of Typescript compiler option 'outDir' must be located inside the same directory as the Rollup 'file' option. #1776

@remarkablemark

Description

@remarkablemark

Expected Behavior

Rollup build does not error

Actual Behavior

Rollup build throws error:

> html-react-parser@5.1.16 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions