Skip to content

🤖 User test baselines have changed #28524

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

Closed

Conversation

typescript-bot
Copy link
Collaborator

Please review the diff and merge if no changes are unexpected.
You can view the build log here.

cc @weswigham @sandersn @RyanCavanaugh

@@ -0,0 +1,8 @@
Exit Code: 1
Standard output:
src/App.tsx(2,8): error TS2307: Cannot find module './App.css'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!?!? Did something in this project's dependency hierarchy change to no longer include a css blanket module declaration? cc @DanielRosenwasser

Copy link
Member

@weswigham weswigham Nov 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhhhhhhhhhhhhhhhhhhhhhh, I know what it is - we don't have a *.css module reference in the starter and never have. And for some reason, we've never validated the paths on ImportDeclarations with no clauses (because we only do that during export resolution and if you request no members, we do no export resolution). In 7a71887, getAlternativeContainingModules attempts a lookup of all imports in a file (including ones we don't look at exports for) to try to find aliases of a symbol for printing a better name for it. This causes us to actually check the validity of the import and learn that in fact it is not valid.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DanielRosenwasser didn't that we don't check these kinds of imports come up recently? Do we want to formally fix the behavior and check their validity (like this, but ideally more explicitly), or should I suppress any errors from resolveExternalModuleName during getAlternativeContainingModules?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants