https://pulumi.com logo
#typescript
Title
# typescript
c

clever-painter-96148

10/27/2021, 10:25 PM
Hi. I noticed that https://github.com/pulumi/pulumi/pull/8215 got merged and was super happy as I have that issue. So I went trying the patch, but now, I end up with another issue:
Copy code
Error: failed to register new resource createTeam [aws:lambda/function:Function]: 2 UNKNOWN: failed to compute asset hash for "node_modules/@theboxescapegame/dhvg-core-types": asset path 'node_modules/@theboxescapegame/dhvg-core-types' is a directory; try using an archive
(It's an in-house package in our monorepo). Any clue? Cc @prehistoric-kite-30979
https://github.com/pulumi/pulumi/issues/2980 got closed following the merge of #8215, but I got the same issue with that patch.
p

prehistoric-kite-30979

10/27/2021, 10:32 PM
Has this been added to a release yet?
or are you pinning directly to a commit for you pulumi import?
this wont be in a release until 3.17 by the looks of it
c

clever-painter-96148

10/27/2021, 10:34 PM
I backported your patch using "yarn patch"
p

prehistoric-kite-30979

10/27/2021, 10:35 PM
I didnt actually test the yarn link use case but I dont see why it wouldnt work
(I only tested my own)
c

clever-painter-96148

10/27/2021, 10:35 PM
I do not use "yarn link", just regular workspaces
p

prehistoric-kite-30979

10/27/2021, 10:36 PM
ok let me check once 3.17 is cut
ping me on Friday 🙂
c

clever-painter-96148

10/27/2021, 10:36 PM
(yarn 3 - hoisting disabled)
Cool, thanks! 🙂
r

red-match-15116

10/27/2021, 11:07 PM
FWIW 3.17 won’t be cut until next Wednesday but you can always install the latest dev builds with
yarn add @pulumi/pulumi@dev
p

prehistoric-kite-30979

10/27/2021, 11:26 PM
ok I’ll give this a go tomorrow, thanks
ok, had some time so gave this a go…
Copy code
/Users/liamwhite/src/github.com/tetrateio/tetrate/cloud/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/runtime/resource.js:219:27
is whats complaining, so the aws library must update its pulumi version as well I think?
r

red-match-15116

10/28/2021, 3:53 AM
good call. That should also pull in 3.17.0 once it’s released based on how it’s specified in the package.json - but you might be able to use resolutions to force pulumi-aws to use the dev version for now.
c

clever-painter-96148

10/28/2021, 7:29 AM
@red-match-15116 I have the same issue with 3.17.0 (dev)
3 Views