-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hi,
There's an export issue in unfetch version 5 which is mentioned in below PR but its not merged since February 2023
Toucan-sdk is using "isomorphic-unfetch": "^4.0.2" which internally using unfetch version 5 thus causing below issue while bundling:
**✘ [ERROR] Could not resolve "unfetch"
../../../../fireblocks/node_modules/isomorphic-unfetch/index.js:7:14:
7 │ ? r(require("unfetch"))
╵ ~~~~~~~~~
The module "./index.js" was not found on the file system:
../../../../fireblocks/node_modules/unfetch/package.json:19:17:
19 │ "default": "./index.js"
╵ ~~~~~~~~~~~~
You can mark the path "unfetch" as external to exclude it from the bundle, which will remove this
error. You can also surround this "require" call with a try/catch block to handle this failure at
run-time instead of bundle-time.**
Kindly fix it using alternative library or downgrade isomorphic-unfetch to 4.0.0 which solves the issue until PR gets merged