production-install with portal dependencies
Thanks for the great plugin and tips you gave me here (https://github.com/yarnpkg/berry/issues/1970). I have everything deploying to AWS and it is great. I am trying to test a dependency change by referencing it with portal:../path-to-dep
. I then want to deploy the code to our dev account. Part of build and deploy process involves a call to yarn prod-install target/tmp/nodejs
. When there is a portal dep in package.json
, I get an error like this:
% yarn prod-install target/tmp/nodejs
➤ YN0000: ┌ Setting up production directory
➤ YN0000: └ Completed
➤ YN0000: ┌ Installing production version
➤ YN0000: │ ┌ Modifying original install state
➤ YN0000: │ └ Completed
➤ YN0000: │ ┌ Resolution step
➤ YN0001: │ │ Error: @stedi/platform-txn-lambdalogger@portal:../platform-txn-lambdalogger::locator=%40stedi.platform.txn%2Fservice%40workspace%3A.: Manifest not found
at Function.find (/Users/jakepearson/projects/platform-txn-ledger/.yarn/releases/yarn-2.3.3.cjs:2:297604)
at async /Users/jakepearson/projects/platform-txn-ledger/.yarn/releases/yarn-2.3.3.cjs:2:146820
at async Module.B (/Users/jakepearson/projects/platform-txn-ledger/.yarn/releases/yarn-2.3.3.cjs:2:392660)
at async c.resolvers.resolve (/Users/jakepearson/projects/platform-txn-ledger/.yarn/releases/yarn-2.3.3.cjs:2:146772)
at async i.resolve (/Users/jakepearson/projects/platform-txn-ledger/.yarn/releases/yarn-2.3.3.cjs:2:314407)
at async t.B.resolve (/Users/jakepearson/projects/platform-txn-ledger/.yarn/plugins/@yarnpkg/plugin-production-install.cjs:5:23627)
at async y.resolve (/Users/jakepearson/projects/platform-txn-ledger/.yarn/plugins/@yarnpkg/plugin-production-install.cjs:5:5037)
at async i.resolve (/Users/jakepearson/projects/platform-txn-ledger/.yarn/releases/yarn-2.3.3.cjs:2:314407)
at async /Users/jakepearson/projects/platform-txn-ledger/.yarn/releases/yarn-2.3.3.cjs:2:336707
at async Module.y (/Users/jakepearson/projects/platform-txn-ledger/.yarn/releases/yarn-2.3.3.cjs:2:392743)
➤ YN0000: │ └ Completed
➤ YN0000: └ Completed in 0s 221ms
➤ YN0000: Failed with errors in 0s 241ms
I was able to work around the error by packaging the dependency with npm pack
and referencing the dependency with file:
, but I was wondering if you have an idea that would let me still use portal:
?