24542 - bad error message for import *-ing an export=#25445
Conversation
import *-ing an export=
d0dabbc to
44a7350
Compare
44a7350 to
2c7b39a
Compare
|
@DanielRosenwasser can you please review this change. |
|
@mhegazy @weswigham what about |
|
@DanielRosenwasser we can equally point people to |
… bug/24542-bad-error-message-for-import-ing-an-export
|
@DanielRosenwasser @weswigham Should I change the message to
? Maybe the message should rely on module type(es2015, cjs), what do you think? |
|
Hey @a-tarasyuk - I think you're right, but in those circumstances we need to just recommend people use |
|
@DanielRosenwasser thanks for your answer, will wait for the answer from @weswigham in order to understand which message should I use for this case as the message from Expected section - #24542 is not right. |
If module < es2015, esModuleInterop, otherwise alliwSyntheticDefaultImports. |
… bug/24542-bad-error-message-for-import-ing-an-export
…te tests/baselines
|
@DanielRosenwasser can you take a look. |
|
@DanielRosenwasser mentioned he had some comments offline. @DanielRosenwasser can u please comment |
… bug/24542-bad-error-message-for-import-ing-an-export
… bug/24542-bad-error-message-for-import-ing-an-export
… bug/24542-bad-error-message-for-import-ing-an-export
… bug/24542-bad-error-message-for-import-ing-an-export
|
Thank you for the PR and your patience! |
Fixes #24542