swellstores / swell-js

JS library for building storefronts and checkouts with Swell ecommerce.
https://swell.is
MIT License
138 stars 29 forks source link

Error: Unable to resolve "./util.inspect" in `swell.umd.min.js` #172

Closed robwalkerco closed 4 months ago

robwalkerco commented 5 months ago

After updating swell-js from 4.0.0 to 4.0.1 we are getting the following error when using swell-js in React Native:

Unable to resolve "./util.inspect" from "node_modules/swell-js/dist/swell.umd.min.js"

This is caused by the following code in node_modules/swell-js/dist/swell.umd.min.js

...
var utilInspect = require('./util.inspect');
var inspectCustom = utilInspect.custom;
var inspectSymbol = isSymbol$1(inspectCustom) ? inspectCustom : null;
...

I tried to see what change between those versions to cause this issue, but its not obvious to me, so hopefully you may know!

awwit commented 4 months ago

@robwalkerco thanks for the bug report! This was fixed in v4.1.0.

robwalkerco commented 4 months ago

Thanks for fixing