-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
verbatimModuleSyntax
and exported const enum
#52669
Comments
I believe this is by-design unless you run with |
|
I think it just errors when |
|
Would it be possible to mentioned in the documentation that I noticed that EDIT Perhaps |
|
Ups.. I got mixed up. Despite of that, it would be useful to mention in documentation how |
I’m not totally convinced that |
Are you trying to say that this is possibly a bug? I mean, it felt like Would it make sense to open a separate issue? I can do. Just didn’t want to create unnecessary noise. |
I’m catching up here: #16671 |
I had to add |
Bug Report
verbatimModuleSyntax
will be introduced in [email protected] andimportsNotUsedAsValues
andpreserveValueImports
will be deprecated.But there is a
const enum
export issue that has not been fixed.🔎 Search Terms
🕗 Version & Regression Information
[email protected]
⏯ Playground Link
Playground link with relevant code
Playground multi-file mode is broken.
Check this gist
💻 Code
🙁 Actual behavior
SyntaxError: The requested module './foo.js' does not provide an export named 'Foo'
🙂 Expected behavior
TSC Report Error: const enum cannot be exported in
verbatimModuleSyntax
mode.🔗 related issue
The text was updated successfully, but these errors were encountered: