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
Export is not defined #10044
Comments
Hey @jj-choi! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
I've encountered similar issue with |
I've also encountered this issue upgrading from 7.4.4 to 7.4.5 |
@ksocha @JoshRobertson could you guys explain more on the specific code that produces error in typescript? |
I've created a repo using With 7.4.5, you'll see that exported function is undefined. You can change versions by modifying resolutions entry in package.json. |
@ksocha Thanks for the reproduction repo! However, I can not reproduce this issue with jj-choi's issue can be reproduced at REPL. |
@JLHwung - did you manage to catch the issue? Because I have the same issue even on the latest |
@boris-petrov I assume you mean the issue submitted by the OP. And yes, the issue can be reproduced. If you mean the issue submitted by @ksocha, I could not reproduce on his repo. |
@JLHwung - sorry, yes, I mean the original issue. Great, so we'll be expecting a fix soon, thanks! |
* fix: typo * declare name for flow interface * add test case for export overload function, typescript * test: add test Fixes #10044 * test: update test * test(flow): add multiple declarations regression test * re-enable flow test case # Conflicts: # packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/def-site-variance/input.js # packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/strip-declare-statements/input.js # packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/strip-interfaces-module-and-script/input.js # packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/strip-iterator/input.js * test: disable two flow dupl-decl test * fix: do not declare name for declare function until we figure out a better way * test: duplicate declare function and function would not throw
Bug Report
Current Behavior
SyntaxError: Export 'Foo' is not defined
Input Code
Expected behavior/code
no error
Babel Configuration (.babelrc, package.json, cli command)
flow plugin
Environment
Possible Solution
flowParseInterfaceish() should call checkLVal() or scope.declareName()
The text was updated successfully, but these errors were encountered: