equal-access icon indicating copy to clipboard operation
equal-access copied to clipboard

[BUG]: Checker having issues with ESM environments due to uuid usage

Open tombrunet opened this issue 2 years ago • 2 comments

Project

a11y checker

Browser

No response

Operating system

No response

Description

https://ibm-studios.slack.com/archives/C036P1CTN/p1653658647868209 When using Jest 28.1.0, UUID is throwing errors due to ESM / CommonJS confusion. Need to figure out how to resolve usage in both environments.

Steps to reproduce

See description

tombrunet avatar May 27 '22 15:05 tombrunet

I resolved this by installing uuid as a dev dependency and using the jest module name mapper to point to my instance of uuid.

moduleNameMapper: {
   '^uuid$': '<rootDir>/node_modules/uuid/dist/index.js',
}

areddon avatar Jun 09 '22 16:06 areddon

triage: this is caused by the node moving to ESM, we need to investigate and figure it out. The user suggestion is a temp workout. This should be in the next release when we are working on user-related work.

shunguoy avatar Jul 21 '22 20:07 shunguoy

Working with our tests in the 4.0.0-rc.0 release. Please try and re-open if you still have issues with this release.

tombrunet avatar May 22 '23 19:05 tombrunet