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

Not all NPM packages work out of the box #928

Closed
1 task done
bakeiro opened this issue May 9, 2022 · 2 comments
Closed
1 task done

Not all NPM packages work out of the box #928

bakeiro opened this issue May 9, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@bakeiro
Copy link

bakeiro commented May 9, 2022

Describe the bug
I wanted to use this project since looks simple (what I need, not a super big frontend tool with a lot of settings) I did a small test to check if worked as expected, it did actually (I tried out this library https://www.npmjs.com/package/confetti-js).
After that test I decided to use ethers.js (https://www.npmjs.com/package/ethers) but seems that I can instantiate the object, since I got some errors (image attached)

To Reproduce

  1. Install ethers npm i ethers
  2. Create a index.html which includes a index.js file
  3. Write this in the JS file
import { ethers } from "ethers";

let methodArgs = ethers.utils.formatBytes32String("last dog");
console.log(methodArgs);
  1. Using snowpack/node works out of the box, not in this tool

Expected behavior
Should work out of the box

Bug occurs with:

  • wmr or wmr start (development)

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: chrome
  • Node Version: [e.g. 16.14.2]
  • WMR Version: [e.g. 3.7.2]
    image
    image
@bakeiro bakeiro added the bug Something isn't working label May 9, 2022
@bakeiro
Copy link
Author

bakeiro commented May 9, 2022

update, same code, same package works out of the box in parcel

@rschristian
Copy link
Member

Duplicate of #910, same libraries used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants