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

Reason SyntaxError: Identifier 'click' has already been declared. #48

Open
beerinho opened this issue Mar 15, 2022 · 0 comments
Open

Reason SyntaxError: Identifier 'click' has already been declared. #48

beerinho opened this issue Mar 15, 2022 · 0 comments

Comments

@beerinho
Copy link

beerinho commented Mar 15, 2022

I was trying to upgrade from ember 3.28.4 to 4.2.0 and got this error when running the codemod.

Stack trace:
SyntaxError: Identifier 'click' has already been declared. (13:7)
    at Object._raise (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/parser/error.js:147:45)
    at Object.raiseWithData (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/parser/error.js:142:17)
    at Object.raise (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/parser/error.js:91:17)
    at TypeScriptScopeHandler.checkRedeclarationInScope (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/util/scope.js:152:12)
    at TypeScriptScopeHandler.declareName (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/util/scope.js:113:12)
    at TypeScriptScopeHandler.declareName (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/plugins/typescript/scope.js:51:11)
    at Object.checkLVal (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/parser/lval.js:531:22)
    at Object.checkLVal (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/plugins/typescript/index.js:3101:17)
    at Object.parseImportSpecifierLocal (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/parser/statement.js:2300:10)
    at Object.maybeParseDefaultImportSpecifier (/Users/dan/.npm/_npx/528c679e65742dd5/node_modules/@babel/parser/src/parser/statement.js:2427:12)

I'm not sure yet what impact it has had on the app, but I saw the error and it told me to raise an issue, so here I am 😄. Please let me know you need any more details

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

1 participant