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

SyntaxError when opening the addPinDialog modal #85

Open
Lucas-C opened this issue Jan 9, 2020 · 0 comments
Open

SyntaxError when opening the addPinDialog modal #85

Lucas-C opened this issue Jan 9, 2020 · 0 comments

Comments

@Lucas-C
Copy link
Member

Lucas-C commented Jan 9, 2020

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`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant