-
Notifications
You must be signed in to change notification settings - Fork 64
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
importing mjs fails in node #115
Comments
Since cjs would not work with type module, the file ext should be .mjs. Also, tsc doesn't seem to be able to change file ext. microsoft/TypeScript#49462 |
I'm pretty happy with tsup
|
That looks cool. vite is also another option since openapi3-ts depends on vitest. I don't have a special opinion. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
package.json
app.mjs
it fails to import when running
node app.mjs
It's probably because the published package.json does not have
"type": "module"
, or that the published files does not end with ".mjs"The text was updated successfully, but these errors were encountered: