Vue auto-import from monorepo library

When in a monorepo setup, i.e:

-- vue-app
-- tsconfig.json (paths alias to packages/ui)
-- ui
-- utils.ts
-- MyPackageComponent.vue

Imports from utils.ts get correctly suggested on auto-import, but Vue components do not get suggested for auto-import. It seems that Vue component auto imports will only detect components that are within the app folder.

Is this a known issue? I was not able to find anything on this. A bit of a dealbreaker for a monorepo setup that relies on relative path imports.

Note, this appears to be a problem in Volar as well.

1 comment
Comment actions Permalink

Doesn't look like a known issue. Do you have a sample repo you could share that reproduces the problem?


Please sign in to leave a comment.