Getting the below error when rendering the speedometer component during unit testing
Error: require() of ES Module /node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.js from /node_modules/.pnpm/react-d3-speedometer@1.1.0_biqbaboplfbrettd7655fr4n2y/node_modules/react-d3-speedometer/dist/core/util/index.js not supported.
Instead change the require of isNumber.js in /node_modules/.pnpm/react-d3-speedometer@1.1.0_biqbaboplfbrettd7655fr4n2y/node_modules/react-d3-speedometer/dist/core/util/index.js to a dynamic import() which is available in all CommonJS modules.
Serialized Error: {
"code": "ERR_REQUIRE_ESM",
}
Getting the below error when rendering the speedometer component during unit testing
Error: require() of ES Module/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.js from /node_modules/.pnpm/react-d3-speedometer@1.1.0_biqbaboplfbrettd7655fr4n2y/node_modules/react-d3-speedometer/dist/core/util/index.js not supported.
Instead change the require of isNumber.js in /node_modules/.pnpm/react-d3-speedometer@1.1.0_biqbaboplfbrettd7655fr4n2y/node_modules/react-d3-speedometer/dist/core/util/index.js to a dynamic import() which is available in all CommonJS modules.
Serialized Error: {
"code": "ERR_REQUIRE_ESM",
}