After installing you must also require('annotator') which implies that you also bundled your application code using an npm compatible bundler such as webpack, browserify, or require.js.
Standalone releases of annotator that will let you simply add a script to the page, as we did with 1.2 series, are possible but I haven't had cycles available to finalize the packaging and make a proper release for that use case. On Fri, Feb 26, 2016, 09:19 Marija Katic <m.ka...@bbk.ac.uk> wrote: > Hi All, > > I can see there has been similar question raised, and I am not sure if > this list is still active. I am really new to the annotator and trying to > set it up. I have installed it using npm, and the annotator 2.0.0-alpha.3 is > in my package.json dependency list. When I set it up on my page I do not > get it working. I get this: > > Uncaught ReferenceError: annotator is not defined. This happens on the > line: > > var app = new annotator.App(); > > Am I doing something wrong or should I use old version? > > Btw. annotateit is down again. > > Any help would be appreciated! > > Thanks a lot! > > Kind regards, > > Maria > > > _______________________________________________ > annotator-dev mailing list > annotator-dev@lists.okfn.org > https://lists.okfn.org/mailman/listinfo/annotator-dev > Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev >
_______________________________________________ annotator-dev mailing list annotator-dev@lists.okfn.org https://lists.okfn.org/mailman/listinfo/annotator-dev Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev