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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot redeclare block-scoped variable" when multi-model #517

Open
addlistener opened this issue Aug 13, 2023 · 2 comments
Open

"Cannot redeclare block-scoped variable" when multi-model #517

addlistener opened this issue Aug 13, 2023 · 2 comments

Comments

@addlistener
Copy link

addlistener commented Aug 13, 2023

If we have 2 typescript files with the same content. An error will be shown

Cannot redeclare block-scoped variable 'a'.

image

The file content

const a = 1;
console.log(a);

I have provided a CodeSandbox but somehow it kept eating all my edits. IDK why and the explanation should be simple enough to reproduce from the basic example

@suren-atoyan
Copy link
Owner

seems like there is a known issue

@cihanincir
Copy link

How did you fixed? I didn't found any solution.

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

No branches or pull requests

3 participants