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

Error: The module's source code could not be parsed: Unexpected character #9

Closed
feresr opened this issue Jun 20, 2023 · 2 comments
Closed

Comments

@feresr
Copy link

feresr commented Jun 20, 2023

The esm.sh link for fetching stripe (https://esm.sh/[email protected]?target=deno) seems to be returning corrupt (compressed?) data.
I am getting this error after running supabase functions deploy

error: Uncaught (in promise) Error: The module's source code could not be parsed: Unexpected character '\u{2}' at https://esm.sh/[email protected]?target=deno:1:3

  !� F��_��E=�`؀���i�W6ƶ?��N
    ~
      const ret = new Error(getStringFromWasm0(arg0, arg1));
                  ^
@thorwebdev
Copy link
Owner

Are you importing this via and import map? You'll need to use an import map for the time being: https://github.com/stripe-samples/stripe-node-deno-samples/issues/2#issuecomment-1346642637

@feresr
Copy link
Author

feresr commented Jun 21, 2023

I was. The issue was with the CDN. I asked on Discord and they got it fixed. Thank you

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

2 participants