When I want to run a WebPPL program with webppl-viz, I get ReferenceError: document is not defined. This problem is already described in issue #79. I'll just add my workaround here, so that people can find it more easily.
Assuming that you've installed all your WebPPL stuff in ~/.webppl, run this:
for p in $(find ~/.webppl -name canvas |grep 'node_modules/canvas$' |sed 's/node_modules\/canvas//'); do
npm --prefix=$p uninstall canvas && npm --prefix=$p install canvas@1.6.4
done
When I want to run a WebPPL program with webppl-viz, I get
ReferenceError: document is not defined
. This problem is already described in issue #79. I'll just add my workaround here, so that people can find it more easily.Assuming that you've installed all your WebPPL stuff in
~/.webppl
, run this:This sets all occurrences of canvas to 1.6.4.
And sorry if my Bash is inelegant…