#GraphQLRequestError: /code/node_modules: cannot retrieve path from cache

1 messages · Page 1 of 1 (latest)

humble monolith
#

mayyyybe an error message to improve

brisk knoll
#

I printed the string and got platform-production, so cacheVolume is being called with that parameter

humble monolith
#

ohhh right i get it

#

so yeah, i just don't think you're allowed to read paths from cache volumes 😄
not... 100% sure why? can't think of a reason why that's been explicitly forbidden

brisk knoll
#

I don't think I am, my code is:

.withMountedCache(
    `${workingDirectory}/node_modules`,
    dag.cacheVolume(packageName)
)
#

Pretty much lifted from the documentation