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

Get SyntaxError: Identifier has already been declared #254

Open
yusukegoto opened this issue Jun 11, 2024 · 0 comments
Open

Get SyntaxError: Identifier has already been declared #254

yusukegoto opened this issue Jun 11, 2024 · 0 comments

Comments

@yusukegoto
Copy link

I'm trying to use @aws-sdk/client-evidently with importmap-rails and am getting an identifier clashing error.

SyntaxError: Identifier 'identifyUser' has already been declared 
(at application-f95e84a6b52a31d138bd8d4b067c4365e2ac1dc26b2dc4bc705b84c0f3779ec2.js:11862:1)

By inspecting installed scripts, I can see two identifyUser declarations in app/assets/javascripts directory.

$ git grep -n identifyUser
app/assets/javascripts/rudder-util.js:37:function identifyUser(){
app/assets/javascripts/segment-util.js:63:function identifyUser(){

Installation command: ./bin/importmap pin '@aws-sdk/client-evidently'
@aws-sdk/client-evidently: 3.592.0
Ruby: ruby 3.0.6p216
Rails: Rails 6.1.7.8
importmap-rails: 2.0.1

Any help? Thanks!

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