../../packages/shared/src/components – this works only on project startup.
When vite is running in dev mode, if you try to add a new component in the packages/shared/src/components, it won't be reflected in components.d.ts of the test-app.
I tried to add the shared components' path in server.fs.allow, but it doesn't work for me.
Describe the bug
Trying to make it work in a monorepo powered by Turborepo without building the shared components. There is no much information on the topic.
In the app's vite config (
/apps/test-app/vite.config.ts
) I do this:../../packages/shared/src/components
– this works only on project startup.vite
is running in dev mode, if you try to add a new component in thepackages/shared/src/components
, it won't be reflected incomponents.d.ts
of the test-app.I tried to add the shared components' path in
server.fs.allow
, but it doesn't work for me.I attached a minimal reproduction for this issue.
Reproduction
https://github.com/andrei-hudovich/unplugin-vue-components-monorepo-issue
System Info
Used Package Manager
yarn
Validations