-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
TypeError: dts is not a function #247
Comments
Some issue. |
having the same issue, anyone found a solution? |
Together with the warning that was in the stackoverflow post you linked:
Its most likely some cjs interop problem? |
This seems to work |
Same. But it finally works.However, I tried many ways and don't which step makes it work. Maybe you can rename your |
It works using |
Slightly off-topic but the part Correct way is according to Node.js Design Patterns 3rd. ED p.62: import { createRequire } from "module";
const require = createRequire(import.meta.url);
const packageJson = require("./package.json"); Be careful when copy-pasting snippets blindly from dubious sites! |
It is working with |
Checklist
Other plugins, such as
node-resolve
are known to cause issues..d.ts
files generated by TypeScript.The plugin can consume
.ts
and even.js
files (withallowJs: true
), but this is known to cause issues.@types
.The plugin ignores these by default, unless
respectExternal
is set.@types
can contain hand-crafted code which is known to cause issues.Notes
Dependency versions
Code Snipped
Error Message
The text was updated successfully, but these errors were encountered: