Skip to content

SyntaxError when opening the addPinDialog modal #85

Description

@Lucas-C

It seems to be systematical, there is the related stacktrace:

SyntaxError: expected expression, got '<'
    b vendor.1266009d.js:44
    Ie vendor.1266009d.js:2356
    append vendor.1266009d.js:2413
    open vendor.1266009d.js:69304
    timeoutId vendor.1266009d.js:24660
    completeTask vendor.1266009d.js:24316
    timeoutId vendor.1266009d.js:10609

So far, based on some fiddling with Firefox debugger, I suspect this code that initializes Bootstrap tooltips, because this error is raise when this <script> tag is dynamically added by AngularJS+jQuery:
https://github.com/voyages-sncf-technologies/vboard/blob/master/vboard-front/src/main/common/vboardAddPinDialog/templates/vboardAddPinDialog.html#L137

Next steps:

  • reproduce the bug locally, in a dev env, and try to add debug logs around this JS line
  • try to get rid ofthis <script>and move the related code to the corresponding controller (as already done invboardPin.js`)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions