Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrectly importing default exported component via quickfix #2014

Open
1 task
DimitriTsikaridze opened this issue Mar 12, 2024 · 0 comments
Open
1 task
Labels

Comments

@DimitriTsikaridze
Copy link

馃悶 bug report

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

A clear and concise description of the problem...

If the bug is caused or experienced by a particular source code, please provide a minimal
reproduction of that source code.

Bug Type

What does this bug affect

  • [+] Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

Steps to reproduce the behavior:

  1. Create component and add default export to it like so export default class SignInFormComponent {
  2. write component selector inside other component html and then click option to quick-fix it

Expected behavior

A clear and concise description of what you expected to happen.
it should import component with its default export name instead of
import { default } from "./sign-in-form/sign-in-form.component";
it should be
import SignInComponent from "./sign-in-form/sign-in-form.component"

Logs

Log file gives us deep insight into the behavior and performance of the extension. If the issue is a performance
problem or an error occured, please provide the output of the log file below.

Set Angular Log level to verbose.





Screenshots

image
image

If applicable, add screenshots to help explain your problem.

Example Screenshot

馃實 Your Environment

Angular Version:





Extension Version:





VSCode Version:





Operating System:





Extension options:





Anything else relevant?

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

No branches or pull requests

1 participant