Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

fixed Cannot Find Module error in example #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

textchimp
Copy link

@textchimp textchimp commented Feb 8, 2018

The example doesn't work for me without this relative path; throws the following error:

daydream-node$ node examples/simple.js
module.js:557
    throw err;
    ^

Error: Cannot find module 'daydream-node'
    at Function.Module._resolveFilename (module.js:555:15)
    at Function.Module._load (module.js:482:25)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/textchimp/Documents/build/scratch/daydream-node/examples/simple.js:1:78)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)

Also added some nice output of the whole data object.

I guess the script should tell the user what to do to make the connection, i.e. you have to press the home button...

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

Successfully merging this pull request may close these issues.

1 participant