Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tessel run fails with TypeError: Cannot read property 'usesContinue' of undefined #193

Open
weisjohn opened this issue Jun 2, 2016 · 0 comments

Comments

@weisjohn
Copy link

weisjohn commented Jun 2, 2016

using this file, climate.js:

```var tessel = require('tessel');
// if you're using a si7020 replace this lib with climate-si7020
var climatelib = require('climate-si7020');

var climate = climatelib.use(tessel.port['C']);


climate.on('ready', function () {
  console.log('Connected to si7005');

  // Loop forever
  setImmediate(function loop () {
    climate.readTemperature('f', function (err, temp) {
      climate.readHumidity(function (err, humid) {
        console.log('Degrees:', temp.toFixed(4) + 'F', 'Humidity:', humid.toFixed(4) + '%RH');
        setTimeout(loop, 300);
      });
    });
  });
});

climate.on('error', function(err) {
  console.log('error connecting module', err);
});

$ tessel run climate.js
TESSEL! Connected to TM-00-04-f0009a30-0067433c-404445c2.
INFO Bundling directory /Users/john/mysrc/weisjohn/tessel-code
/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/src/bundle.js:115
throw e;
^
TypeError: Cannot read property 'usesContinue' of undefined
at Object.finishNode as closeNode
at finishNode (/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/node_modules/colony-compiler/src/acorn_mod.js:1059:30)
at parseStatement (/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/node_modules/colony-compiler/src/acorn_mod.js:1182:14)
at parseBlock (/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/node_modules/colony-compiler/src/acorn_mod.js:1391:18)
at parseStatement (/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/node_modules/colony-compiler/src/acorn_mod.js:1340:14)
at parseStatement (/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/node_modules/colony-compiler/src/acorn_mod.js:1234:25)
at parseBlock (/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/node_modules/colony-compiler/src/acorn_mod.js:1391:18)
at parseStatement (/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/node_modules/colony-compiler/src/acorn_mod.js:1340:14)
at parseStatement (/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/node_modules/colony-compiler/src/acorn_mod.js:1234:25)
at parseBlock (/Users/john/.nvm/versions/node/v0.12.7/lib/node_modules/tessel/node_modules/colony-compiler/src/acorn_mod.js:1391:18)


$ which node
/Users/john/.nvm/versions/node/v0.12.7/bin/node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant