Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

vite-tsconfig-paths cannot import a basic TSconfig extends in sub-folder #150

Copy link
Copy link
Closed
@matthew-dean

Description

@matthew-dean
Issue body actions

I've reduced the test case to this: https://stackblitz.com/edit/vitest-dev-vitest-oip9io?initialPath=__vitest__/

You can see that this Vite plugin fails entirely to resolve paths using TSConfig settings.

It's important to note that:

  1. The app itself and TypeScript compiler work fine with this setup. Paths are always relative to their tsconfig.json file, but vite-tsconfig-paths does not account for that, and incorrectly merges path options.
  2. In my actual use case, I do not have control over extending from a sub-folder nor the paths. They are auto-generated by Nuxt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.