We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I installed tsup@^5.6.0 and compiler format set cjs. my compiled file content is like:
tsup@^5.6.0
cjs
var example = __toModule(require('example')) example.abc()
but now, I used tsup@^5.11.12 and same compiler format. my compiled file content is like:
tsup@^5.11.12
var example = __toESM(require('example')) example.default.abc()
now, run this file will thorw error like: TypeError: Cannot read property 'abc' of undefined.
TypeError: Cannot read property 'abc' of undefined
I saw evanw/esbuild#1897 this link and I fined esbuild version difference.
so, I downgrade to tsup@^5.6.0 fix this probrom. and what other solution can fix this?
The text was updated successfully, but these errors were encountered:
Which library is the example here? (a minimal repo would be helpful)
example
Sorry, something went wrong.
Sorry, it is example repo https://github.com/zongzi531/tsup_issues_596
and, this code is:
var example = __toModule(require('example')) example.abc() // example.default.abc()
but run test.js will throw error TypeError: Cannot read property 'isImportDeclaration' of undefined
test.js
TypeError: Cannot read property 'isImportDeclaration' of undefined
Did you ever find a workaround?
nope.
No branches or pull requests
When I installed
tsup@^5.6.0
and compiler format setcjs
. my compiled file content is like:but now, I used
tsup@^5.11.12
and same compiler format. my compiled file content is like:now, run this file will thorw error like:
TypeError: Cannot read property 'abc' of undefined
.I saw evanw/esbuild#1897 this link and I fined esbuild version difference.
so, I downgrade to
tsup@^5.6.0
fix this probrom. and what other solution can fix this?Upvote & Fund
The text was updated successfully, but these errors were encountered: