You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please specify what version of the library you are using: [ 3.16.0 ]
Expected / Desired Behavior / Question
A developer should be able to use any package manager to build the project. Especially pnpm or yarn which are way better than npm. This requires to be very rigorous in declaring dependencies.
Basically, any time a package is used in code, it should be present in the dependencies explicitly, and not by "chance", by indirect dependency.
Ideally, pnpm should be set as the default package manager for this project (personal thought). Even if npm remains the package manager, phantom dependencies introduces some risks.
Observed Behavior
When trying to switch to pnpm, the project cannot be built anymore because of some phantom dependencies. Phantom dependencies are explained greatly by the rush team (https://rushjs.io/pages/advanced/phantom_deps/).
Here's the list of phantom dependencies in this project:
@microsoft/sp-component-base@1.17.3
@microsoft/sp-http@1.17.3
@microsoft/sp-page-context@1.17.3
@microsoft/sp-extension-base@1.17.3
@uifabric/react-hooks@7.16.4
@pnp/odata@2.5.0
@uifabric/utilities@7.38.2
@pnp/common@2.5.0
@fluentui/merge-styles@8.5.12
@fluentui/styles@0.66.5
@fluentui/react-icons-northstar@0.66.5
Steps to Reproduce
clone the repo
run pnpm install (and not npm)
try to build pnpm run build
A lot of errors appear because of missing dependencies
The text was updated successfully, but these errors were encountered:
Category
[ ] Enhancement
[X] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ 3.16.0 ]
Expected / Desired Behavior / Question
A developer should be able to use any package manager to build the project. Especially
pnpm
oryarn
which are way better thannpm
. This requires to be very rigorous in declaring dependencies.Basically, any time a package is used in code, it should be present in the dependencies explicitly, and not by "chance", by indirect dependency.
Ideally, pnpm should be set as the default package manager for this project (personal thought). Even if npm remains the package manager, phantom dependencies introduces some risks.
Observed Behavior
When trying to switch to pnpm, the project cannot be built anymore because of some phantom dependencies. Phantom dependencies are explained greatly by the rush team (https://rushjs.io/pages/advanced/phantom_deps/).
Here's the list of phantom dependencies in this project:
Steps to Reproduce
pnpm install
(and notnpm
)pnpm run build
The text was updated successfully, but these errors were encountered: