Skip to content

ERROR in ./src/index.js #5

@kayhan-batmanghelich

Description

@kayhan-batmanghelich

Hi,

Thank you for sharing your code.

I would like to try your code and so I have been unable to get it working but here is the error that I get:

$ npm start

> TurkerGaze@0.0.2 start /Users/kayhan/Projects/gitSandBox/TurkerGaze
> node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js

http://localhost:8080/webpack-dev-server/
webpack result is served from /
content is served from ./
404s will fallback to /index.html
Hash: ca7616af249742709dcb
Version: webpack 1.13.1
Time: 530ms
    Asset     Size  Chunks             Chunk Names
bundle.js  1.69 kB       0  [emitted]  main
chunk    {0} bundle.js (main) 55 bytes [rendered]
    [0] multi main 28 bytes {0} [built]
    [1] ./src/index.js 27 bytes {0} [built] [1 error]

ERROR in ./src/index.js
Module not found: Error: Cannot resolve module 'script' in /Users/kayhan/Projects/gitSandBox/TurkerGaze/src
 @ ./src/index.js 1:0-26
webpack: bundle is now VALID.

[Nothing happens here ...]

It seems the installation went through without any error:

$ ./scripts/install.sh
|
> fsevents@1.0.14 install /usr/local/lib/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/usr/local/lib/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
/usr/local/bin/webpack -> /usr/local/lib/node_modules/webpack/bin/webpack.js
webpack@1.13.1 /usr/local/lib/node_modules/webpack
├── interpret@0.6.6
├── tapable@0.1.10
├── clone@1.0.2
├── async@1.5.2
├── supports-color@3.1.2 (has-flag@1.0.0)
├── enhanced-resolve@0.9.1 (graceful-fs@4.1.4, memory-fs@0.2.0)
├── loader-utils@0.2.15 (object-assign@4.1.0, big.js@3.1.3, emojis-list@2.0.1, json5@0.5.0)
├── acorn@3.2.0
├── mkdirp@0.5.1 (minimist@0.0.8)
├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
├── memory-fs@0.3.0 (errno@0.1.4, readable-stream@2.1.4)
├── webpack-core@0.6.8 (source-map@0.4.4, source-list-map@0.1.6)
├── uglify-js@2.6.4 (async@0.2.10, uglify-to-browserify@1.0.2, source-map@0.5.6, yargs@3.10.0)
├── node-libs-browser@0.5.3 (https-browserify@0.0.0, tty-browserify@0.0.0, path-browserify@0.0.0, constants-browserify@0.0.1, punycode@1.4.1, string_decoder@0.10.31, os-browserify@0.1.2, process@0.11.5, assert@1.4.1, domain-browser@1.1.7, querystring-es3@0.2.1, timers-browserify@1.4.2, stream-browserify@1.0.0, events@1.1.1, vm-browserify@0.0.4, console-browserify@1.1.0, util@0.10.3, readable-stream@1.1.14, url@0.10.3, http-browserify@1.7.0, buffer@3.6.0, browserify-zlib@0.1.4, crypto-browserify@3.2.8)
└── watchpack@0.2.9 (graceful-fs@4.1.4, async@0.9.2, chokidar@1.6.0)
kayhan·31-35-21·07/19,12:13:46·~/Projects/gitSandBox/TurkerGaze (master)
$ npm install
kayhan·31-35-21·07/19,12:13:54·~/Projects/gitSandBox/TurkerGaze (master)

I am trying to get this working with webcam on mac. Unfortunately, I have no experience in javascript so it is difficult for me to debug this.

Thanks,
Kayhan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions