forcedotcom / dependencies-cli

SFDX plugin for metadata dependencies tooling API
BSD 3-Clause "New" or "Revised" License
106 stars 18 forks source link

Yarn install raises import declaration conflict #5

Closed hkache closed 4 years ago

hkache commented 4 years ago

Plugin install is also failing silently for me:

dependency

I tried to linked it localy after git cloning it, and got the following error: error dependencies-cli@2.0.1: The engine "yarn" is incompatible with this module. Expected version ">=1.15.2". Got "1.12.3" After updated yarn, I'm getting this error while running yarn install:

node_modules/@salesforce/core/lib/config/configStore.d.ts:4:10 - error TS2440: Import declaration conflicts with local declaration of 'ConfigContents'.

4 import { ConfigContents } from './configStore';
yarn

Originally posted by @FabienTaillon in https://github.com/forcedotcom/dependencies-cli/issues/4#issuecomment-573788995

hkache commented 4 years ago

@FabienTaillon try remove the conflict, i.e. rm node_modules/@salesforce/core/lib/config/configStore.d.ts.

May need to remove yarn.lock before running yarn install again.

hkache commented 4 years ago

Fixed with version 2.0.1 by raising @salesforce/core and @salesforce/command versions.