The Wikibase JavaScript code has never been a stable interface, as the Stable Interface Policy [1] explicitly points out. As for PropertyValueSnak, it should now be loaded via ResourceLoader –
mw.loader.using( 'wikibase.datamodel' ) .then( function ( require ) { var datamodel = require( 'wikibase.datamodel' ), PropertyValueSnak = datamodel.PropertyValueSnak, EntityId = datamodel.EntityId; // ... } ); – but that’s not the error I get anyways (I get “Error loading citoid config”, because it’s trying to load a JSON file as JavaScript, I think). Cheers, Lucas [1]: https://www.wikidata.org/w/index.php?title=Wikidata:Stable_Interface_Policy&oldid=1037703687#Unstable_Interfaces On 16.11.19 01:49, Max Kristen wrote: > Hi Tech-Mailinglist, > > I'm using this gadget here: > > https://www.wikidata.org/wiki/Wikidata:Tools/Enhance_user_interface#CiteTool > > in its current incarnation here: > > https://www.wikidata.org/wiki/User:MichaelSchoenitzer/CiteTool.js > > It doesn't seem to work since the last few weeks, maybe because it calls > on PropertyValueSnak, which seems to have moved since the last JS API > version. > > https://doc.wikimedia.org/Wikibase/master/js/#!/api/PropertyValueSnak > > Is the API not ready to be stable yet, and how can this be fixed? > > Greetings > > Max > > > > > > _______________________________________________ > Wikidata-tech mailing list > Wikidata-tech@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikidata-tech > _______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech