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: runtime error when importing @solana/web3.js #3874

Open
1 task done
johnb8005 opened this issue Feb 23, 2022 · 1 comment
Open
1 task done

🐛 BUG: runtime error when importing @solana/web3.js #3874

johnb8005 opened this issue Feb 23, 2022 · 1 comment

Comments

@johnb8005
Copy link

Quick checklist

  • I am using the latest version of Snowpack and all plugins.

What package manager are you using?

yarn

What operating system are you using?

macOS

Describe the bug

when running the app snowpack dev --polyfill-node, I get

Unhandled Runtime Error
Uncaught SyntaxError: The requested module '/_snowpack/pkg/text-encoding-utf-8.v1.0.2.js' does not provide an export named 'default'

see screenshot attached

when I disable the import, the error goes away.

Steps to reproduce

  1. use template from https://github.com/nexys-system/boilerplate_snowpack_bootstrap
  2. yarn add @solana/web3.js
  3. somewhere in the code import { Connection, clusterApiUrl, PublicKey } from "@solana/web3.js";
  4. snowpack dev --polyfill-node
  5. Error! see attachment

Screenshot 2022-02-24 at 00 24 44

Link to minimal reproducible example (optional)

No response

@johnb8005
Copy link
Author

context: I am basically trying to reproduce https://lorisleiva.com/create-a-solana-dapp-from-scratch/integrating-with-solana-wallets using react and snowpack

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