Knockout: Unable to process binding afterRender due to Vue Collision(?)

Created on 23 Oct 2018  路  11Comments  路  Source: knockout/knockout

Hello!
We currently manage a Vue(2.x) application, which is injected into other web applications, so we do not have much control of the libraries they use. In this case (Magento 2.x) they use knockout.js and we have this problem, which I do not have much idea about and I would like them to help me understand what could be happening.
Thank you.
Update: (this error is shown first)
screen shot 2018-10-24 at 14 11 21

screen shot 2018-10-23 at 12 29 45
screen shot 2018-10-23 at 12 30 18

All 11 comments

Hi
I have the same problem

This is an error within your main.js code. Knockout is simply reporting that there was exception from that code while applying bindings.

@mbest This application injected into other pages has no problems, so it seems strange to me that this one with knockout.js has this error

That may be, but the exception is buried inside main.js (from your stack trace) or somewhere below init in after-render.js. Set a breakpoint in the main.js and try to understand why p.a is not a constructor. You have the breakpoint there, what is p.a?

@chrisknoll Thanks for read.
p.a is ...
screen shot 2018-10-24 at 14 06 17
screen shot 2018-10-24 at 14 06 09

see here example
Shouldn't the code be:
FingerPrint2().get ...

Please feel free to continue the discussion, but I'll close this since it's not an issue from Knockout.

@PaulHuizer to load it as a module we have to use the new
In addition to having problems with Webpack 馃槙
It seems to be related to this
https://github.com/Valve/fingerprintjs2/issues/233

Ok, good luck with it ;-) I just saw this remark and thought .. it might have been missed:

Fingerprint2.get is now a static function. It replaces new Fingerprint2().get.

What is the ouput of npm ls --depth=0 ?

@GrosSacASac OMG Thanks, I just realized that I was using [email protected], I just updated to the version [email protected].
I can not confirm that the error is corrected because our partner deactivates our application, I will be alerting when I have news. Thank you very much to all!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brunolau picture brunolau  路  8Comments

azaslonov picture azaslonov  路  3Comments

Umar-Mukhtar picture Umar-Mukhtar  路  8Comments

ricardobrandao picture ricardobrandao  路  8Comments

andrewchch picture andrewchch  路  3Comments