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

'NavBar' #53

Open
61ZM07H36R3ML1N opened this issue Aug 26, 2024 · 4 comments · May be fixed by #54
Open

'NavBar' #53

61ZM07H36R3ML1N opened this issue Aug 26, 2024 · 4 comments · May be fixed by #54

Comments

@61ZM07H36R3ML1N
Copy link

61ZM07H36R3ML1N commented Aug 26, 2024

In NavBar.js export const NavBar throws an error "Identifier 'NavBar' has already been declared. this is breaking the scroll listener
identifier declared already

adab786 added a commit to adab786/web-dev-projects that referenced this issue Aug 28, 2024
@adab786
Copy link

adab786 commented Aug 28, 2024

Fixed #53 @61ZM07H36R3ML1N @yossijaki @Trkzi-Omar @hacker-kun

@61ZM07H36R3ML1N
Copy link
Author

Fixed #53 @61ZM07H36R3ML1N @yossijaki @Trkzi-Omar @hacker-kun

what was the issue? because the code doesn't look different?

@Trkzi-Omar
Copy link
Contributor

In NavBar.js export const NavBar throws an error "Identifier 'NavBar' has already been declared. this is breaking the scroll listener
identifier declared already

Of course, we can't import "NavBar" and export "NavBar" in the same file.

A fix would be to simply change the name of the component and its usages.

For example: CustomNavBar

@adab786 adab786 linked a pull request Aug 29, 2024 that will close this issue
@61ZM07H36R3ML1N
Copy link
Author

In NavBar.js export const NavBar throws an error "Identifier 'NavBar' has already been declared. this is breaking the scroll listener
identifier declared already

Of course, we can't import "NavBar" and export "NavBar" in the same file.

A fix would be to simply change the name of the component and its usages.

For example: CustomNavBar

Thank you for your response

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 a pull request may close this issue.

3 participants