-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
[Bug]TypeError: preact_render_to_string_1.renderToString is not a function #197
Comments
Please post your I've been using |
I have same problem with default nest.js project. It have that tsconfig.json:
|
I think this has to do with the way the non-ESM version of this package is published. That version ends up only exporting the "default" export from the library (https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js), which excludes all the additional named exports. You can see the problem in the Node REPL for a project with |
This makes a strong argument in favor of removing the |
Stumbled upon this too.
Yes, default imports are also not very liked today, and unpractical to use. Some consider it as being a bad practice. I think they only make perfect sense when importing non-JS things/unstructured data with module bundlers, otherwise they probably should be avoided as it's mostly detrimental to DX (when it doesn't causes problems with non-ESM environments, like here). |
When using ts-node.
The text was updated successfully, but these errors were encountered: