-
Notifications
You must be signed in to change notification settings - Fork 734
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
No default export #591
Comments
What adjustment to the manual are you proposing? It's not immediately obvious to me where it's implying you should use a default export... |
It seems partial import's aren't working either. It keeps saying
Error in console: |
You're emitting a commonjs module ( You have three options:
See, e.g. here: https://stackoverflow.com/questions/54670544/how-to-fix-referenceerror-exports-is-not-defined-in-a-pure-typescript-project I know what you're thinking: "man, modern JS toolchains are a huge pain! Why is it so complicated?" I agree, but I don't make the rules... |
Hello,
After following the manual I'm stuck on importing luxon as it provides no
default export
. This issue has been resolved earlier but since the manual states you can use es6 syntax I think this issue should be readdressed.Here is an example repo: https://github.com/noelheesen/luxon-example
either open the index.html or use
tsc index.ts
to rebuild (typescript already catches the error).I think the manual needs to be adjusted to the
import * as luxon
statemen or even better, provide a default export.Yours,
The text was updated successfully, but these errors were encountered: