-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
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
CodeBlockWriter is not a constructor in v17.0.0 #1357
Comments
I'm also running into this. It looks like this line in the distributed ts-morph.js file:
Is returning an object with a default property, but the ts-morph code is expecting the class to be returned directly:
This feels very related to esModuleInterop, but unsure if that's actually in play here or not. |
That's weird. It should have compiled with esModuleInterop, but it seems like the output doesn't have that and I believe my tests didn't catch it because they're run through ts-node. I'll look into this right away. Edit: Caused by the upgrade of rollup from v2 to v3.3 |
Sorry about that. Should be fixed in 17.0.1 by reverting rollup from v3 to v2 |
Describe the bug
Version: 17.0.0
After upgrading to v17 I began receiving the following error when our tests attempted to run ts-morph:
To Reproduce
Need to investigate further, opening for awareness.
The text was updated successfully, but these errors were encountered: