Skip to content

svelte, typescript, pnpm, monorepo: error TS6059: File '../../libs/package-name/src/Component.svelte' is not under 'rootDir' #336

Closed
@btakita

Description

@btakita

Using pnpm, typescript, sapper, svelte: after updating to svelte-preprocess 4.7.0: a typescript error TS6059 occurs.

error TS6059: File '../../libs/package-name/src/Component.svelte' is not under 'rootDir' '/path/to/project/libs/package-name/src'. 'rootDir' is expected to contain all source files.
  The file is in the program because:
    Root file specified for compilation

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