Skip to content

🐛 BUG: Vitest can not import Stripe #5592

@gourgouris

Description

@gourgouris

Which Cloudflare product(s) does this pertain to?

Workers Vitest Integration

What version(s) of the tool(s) are you using?

wrangler: ^3.48.0, vitest: 1.3.0, @cloudflare/vitest-pool-workers: ^0.1.17, stripe: ^14.25.0

What version of Node are you using?

v18.18.2

What operating system and version are you using?

Win 11

Describe the Bug

Observed behavior

When importing Stripe, the runner crashes

Expected behavior

No crash

Steps to reproduce

Go to the official SELF recipe
In linked line add the following code (even inside a test, no difference):

import Stripe from "stripe";
const a = Stripe;

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't workingvitestRelating to the Workers Vitest integration

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions