Skip to content

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

@beerinho

Description

@beerinho

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions