Skip to content

Get SyntaxError: Identifier has already been declared #254

@yusukegoto

Description

@yusukegoto

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!

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