Skip to content

Help: TypeError: (0 , Ui.default) is not a function TSUP bundle issue... maybe #568

Answered by bvkimball
bvkimball asked this question in Q&A
Discussion options

You must be logged in to vote

So the problem for me is caused by this evanw/esbuild#2023
I think it is an issue with how esbuild interprets this package.

for me since i use yarn v3 i just created a patch for it. here it is

 diff --git a/dist/index.shim.cjs b/dist/index.shim.cjs
new file mode 100644
index 0000000000000000000000000000000000000000..de9c43f17ba8f6d3fe25e62981e55d8213f7051c
--- /dev/null
+++ b/dist/index.shim.cjs
@@ -0,0 +1 @@
+module.exports = require('./index.js').default
diff --git a/package.json b/package.json
index 441abeed8e3d99d2d5b4b9f8ef92becb6fdfe113..5430adda2ceb5e2d88624574397146505b58d697 100644
--- a/package.json
+++ b/package.json
@@ -103,5 +103,9 @@
   },
   "peerDependencies": {
     "reac…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gabro
Comment options

gabro Apr 4, 2023
Maintainer

Answer selected by bvkimball
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants