Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Miniflare testing not working due to chalk #563

Open
psteinroe opened this issue May 8, 2024 · 1 comment
Open

[BUG] Miniflare testing not working due to chalk #563

psteinroe opened this issue May 8, 2024 · 1 comment

Comments

@psteinroe
Copy link

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?

Copy link

linear bot commented May 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant