Not all NPM packages work out of the box
bakeiro opened this issue · 2 comments
bakeiro commented
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
- Install ethers
npm i ethers
- Create a index.html which includes a index.js file
- Write this in the JS file
import { ethers } from "ethers";
let methodArgs = ethers.utils.formatBytes32String("last dog");
console.log(methodArgs);
- Using snowpack/node works out of the box, not in this tool
Expected behavior
Should work out of the box
Bug occurs with:
-
wmr
orwmr start
(development)
Desktop (please complete the following information):
bakeiro commented
update, same code, same package works out of the box in parcel
rschristian commented
Duplicate of #910, same libraries used.