Hello everyone ! Welcome to NIT-dgp. Our Github: https://github.com/NIT-dgp Our FB: https://www.facebook.com/groups/NITDgpOS
pandusonu2 on master
Added Logo and Updated proposal… (compare)
I forked , and cloned the project https://github.com/lugnitdgp/Attendancetracking ,Then in frontend directory running :yarn run in dev mode is showing me the error:
ERROR in ./src/index.jsx
Module build failed: SyntaxError: Unexpected token (26:6)
24 | var pagecontainer=[];
25 | pagecontainer.push(
26 | <div>
| ^
27 | <Attendance />
28 | </div>
29 | )
and the build fails ,
what is the solution for this error?
Built at: 01/25/2020 12:25:40 PM
Asset Size Chunks Chunk Names
main.bundle.js 319 KiB main [emitted] main
Entrypoint main = main.bundle.js
[0] multi ./js/index.js 28 bytes {main} [built]
[./js/index.js] 93 bytes {main} [built]
[./js/src/Button.js] 91 bytes {main} [built]
[./js/src/Form.js] 321 bytes {main} [built]
[./js/src/alertBox.js] 733 bytes {main} [built]
[./js/src/quizCard.js] 179 bytes {main} [built]
+ 1 hidden module
events.js:174
throw er; // Unhandled 'error' event
^
Error: spawn /Users/yashvardhanprasad/Desktop/Metal_UI-master/node_modules/hugo-bin/vendor/hugo ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:832:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
[... lines matching original stack trace ...]
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! metal@1.0.0 server: webpack --mode development && hugo server --source site/
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the metal@1.0.0 server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/yashvardhanprasad/.npm/_logs/2020-01-25T06_55_40_165Z-debug.log
[nodemon] app crashed - waiting for file changes before starting...
can you help with this error ?