Open psteinroe opened 3 months ago
Describe the bug When running a test with mini flare (Cloudflare Worker local dev env) and Inngestjs, it always crashes with
TypeError: Cannot read properties of undefined (reading 'bold') ❯ Users/psteinroe/Developer/hellomateo/node_modules/inngest/helpers/consts.js?mf_vitest_no_cjs_esm_shim:146:45 ❯ Users/psteinroe/Developer/hellomateo/node_modules/inngest/helpers/env.js?mf_vitest_no_cjs_esm_shim:9:18 ❯ Users/psteinroe/Developer/hellomateo/node_modules/inngest/api/api.js?mf_vitest_no_cjs_esm_shim:4:15 ❯ Users/psteinroe/Developer/hellomateo/node_modules/inngest/components/Inngest.js?mf_vitest_no_cjs_esm_shim:4:15 ❯ Users/psteinroe/Developer/hellomateo/node_modules/inngest/index.js?mf_vitest_no_cjs_esm_shim:6:17
The reason is that for some reason, chalk.magenta is undefined. Is there any way we could change it to return a default prefix (without chalk) if its not there?
chalk.magenta
undefined
INN-3007 [BUG] Miniflare testing not working due to chalk
Describe the bug When running a test with mini flare (Cloudflare Worker local dev env) and Inngestjs, it always crashes with
The reason is that for some reason,
chalk.magenta
isundefined
. Is there any way we could change it to return a default prefix (without chalk) if its not there?