pnpm version:
Code to reproduce the issue:
https://github.com/bryantobing12/next-boilerplate
Steps to reproduce
- pnpm install, it will install
@typescript-eslint/eslint-plugin in local. because it's listed as eslint-config-airbnb-typescript peers,
- pnpm build success in local that require
@typescript-eslint/eslint-plugin
- deploy to vercel, pnpm build error because it can't find
@typescript/eslint-plugin
in this repo, I have set in .npmrc file auto-install-peers=true
It works in my local developement and the peerDepedencies installed,
but when deploying to vercel, in the build process, the error appears because some peerDependencies cannot be found, in my case is @typescript/eslint-plugin that being used in eslint-config-airbnb-typescript
and i think it's because vercel doesn't detect .npmrc file and set the option to automatically install dependencies
Expected behavior:
Vercel read options set in .npmrc file, which in this case auto-install-peers=true so that It installing all required peerDependencies
Actual behavior:
Build error, because it missing some peerDependencies
Additional information:
node -v prints: v16.13.2
- Windows, macOS, or Linux?:
WINDOWS
pnpm version:
Code to reproduce the issue:
https://github.com/bryantobing12/next-boilerplate
Steps to reproduce
@typescript-eslint/eslint-pluginin local. because it's listed aseslint-config-airbnb-typescriptpeers,@typescript-eslint/eslint-plugin@typescript/eslint-pluginin this repo, I have set in
.npmrcfileauto-install-peers=trueIt works in my
local developementand thepeerDepedenciesinstalled,but when deploying to vercel, in the build process, the error appears because some peerDependencies cannot be found, in my case is
@typescript/eslint-pluginthat being used ineslint-config-airbnb-typescriptand i think it's because vercel doesn't detect .npmrc file and set the option to automatically install dependencies
Expected behavior:
Vercel read options set in .npmrc file, which in this case
auto-install-peers=trueso that It installing all required peerDependenciesActual behavior:
Build error, because it missing some
peerDependenciesAdditional information:
node -vprints: v16.13.2WINDOWS