Closed michaelcmelton closed 6 years ago
Could you provide more information? (Github repo, sample, ...)
For your repo ldez/cubejs
, I guess i don't know how I need to use it inside a node app. How do I initialize it and everything else?
I'm returning an importScripts is not a function issue in the Javascript console.
I want to know your code (your repo, your context).
const Cubejs = require('cubejs/lib/cube.js');
console.log(Cubejs.random())
console.log(Cubejs.inverse("U R"));
const Cubejs = require('cubejs/lib/cube.js');
require('cubejs/lib/solve.js');
Cubejs.initSolver();
const cube01 = new Cubejs();
console.log(cube01.solve());
const cube02 = Cubejs.random();
console.log(cube02.solve());
WebWorker is for browser because Node doesn't support natively WebWorker.
@michaelcmelton https://github.com/michaelcmelton/speedcubing-timer/pull/1
I'm having an issue using it on my own, in my project. I'm returning an importScripts is not a function issue in the Javascript console. I don't know much about worker scripts, so any help would be appreciated. Thanks.