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

ERROR in ./src/index.js #5

Open
kayhan-batmanghelich opened this issue Jul 19, 2016 · 2 comments
Open

ERROR in ./src/index.js #5

kayhan-batmanghelich opened this issue Jul 19, 2016 · 2 comments

Comments

@kayhan-batmanghelich
Copy link

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

> [email protected] 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
|
> [email protected] 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
[email protected] /usr/local/lib/node_modules/webpack
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])
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

@amarknair
Copy link

amarknair commented Jul 21, 2016

Comment out this "require('script!webcamjs');" and try running.

@mortezakarimi
Copy link

run this code to solve error
npm install script-loader --save

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

3 participants