Any chance of upgrading to uuid v9? #6150
Labels
enhancement
New feature proposal
help wanted
Community contributions are welcome.
question
The issue is a question. Please use Stack Overflow for questions.
Problem
When attempting to run tests within Jest, with a direct or indirect dependency on
@cubejs-client/[email protected]
we hit this issue:This appears to be fixed in version 9+ of uuid. Upgrading would ease adoption. uuidjs/uuid#451 (comment)
I believe the reference is likely https://github.com/cube-js/cube.js/blob/c4f51f457dbebec60f4848b951d2604de2512631/packages/cubejs-api-gateway/package.json#L47
Workaround:
There is a workaround which is to add the same version of
uuid
that cubejs requires as a peer dependency and a dev dependency, and then use'^uuid$': require.resolve('uuid')
within the jest.configmoduleNameMapper
section. In a monorepo however, this requires quite a lot of painful duplication.The text was updated successfully, but these errors were encountered: