Open auirarrazaval opened 5 months ago
Can confirm, I'm experiencing the exact same issue.
Found a workaround:
in the tsconfig.json:
{ "compilerOptions": { ... "paths": { "vue": ["./node_modules/vue"] } ... }
worked for me
Can Confirm. Facing the same issue. Any updates on this?
Describe the bug
Hello!
I have recently updated a Vue library source code to use yarn 4.3.0, which uses PnP logic instead of the classic node_modules approach. Serving works just fine, as well as a separate Storybook build and deployment I have running (which doesn't use dts).
The error i get is that when vite starts rolling up the declaration files, i get the following error:
What seems extremely weird is that it's trying to get a file with the structure
node_modules/<library>/dist/<types file .d.ts>/package.json
Upon further inspection, I logged the process used to resolve all paths, and got the following:
Reproduction
https://github.com/auirarrazaval/rollup-rep
Steps to reproduce
Clone the repo, ensure you have yarn 4:
And build
yarn build
System Info
Validations