preactjs/wmr

Not all NPM packages work out of the box

bakeiro opened this issue · 2 comments

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

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

Duplicate of #910, same libraries used.