build fails when using yarn 4 with pnp and rollupTypes: true #341
Labels
bug
Something isn't working
help wanted
Extra attention is needed
upstream
Something about upstream packages
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
The text was updated successfully, but these errors were encountered: