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 First Launch "\server\config\seed.js error Parsing error: Unexpected token" #2580

Closed
pnkjjsr opened this issue May 25, 2017 · 0 comments

Comments

@pnkjjsr
Copy link

pnkjjsr commented May 25, 2017

I try to find the solution over internet, but didn't get any answer, update node, npm, everything. re-install multiple times. but didn't get solution. Please help me.

$ gulp serve
[14:46:52] Requiring external module babel-register
[14:46:57] Using gulpfile C:\xampp\htdocs\angular-node\gulpfile.babel.js
[14:46:57] Starting 'serve'...
[14:46:57] Starting 'clean:tmp'...
[14:46:57] Starting 'lint:scripts'...
[14:46:57] Starting 'lint:scripts:client'...
[14:46:57] Starting 'lint:scripts:server'...
[14:46:57] Starting 'inject'...
[14:46:57] Starting 'inject:scss'...
[14:46:57] Starting 'copy:fonts:dev'...
[14:46:57] Starting 'env:all'...
[14:46:57] Finished 'env:all' after 91 ms
[14:46:57] Finished 'clean:tmp' after 327 ms
[14:46:58] gulp-inject 2 files into app.scss.
[14:46:59] Finished 'inject:scss' after 1.51 s
[14:46:59] Finished 'inject' after 1.51 s
[14:47:00] Finished 'lint:scripts:client' after 2.66 s
[14:47:00]
C:\xampp\htdocs\angular-node\server\config\seed.js
49:6 error Parsing error: Unexpected token

✖ 1 problem (1 error, 0 warnings)

[14:47:00] Finished 'lint:scripts:server' after 2.97 s
[14:47:00] Finished 'lint:scripts' after 3.02 s
[14:47:00] Finished 'copy:fonts:dev' after 2.92 s
[14:47:00] Starting 'start:server'...
[14:47:00] Finished 'start:server' after 21 ms
[14:47:00] Starting 'start:client'...
[nodemon] 1.11.0
[nodemon] to restart at any time, enter rs
[nodemon] watching: C:\xampp\htdocs\angular-node\server/**/*
[nodemon] starting node server
**C:\xampp\htdocs\angular-node\node_modules\babel-core\lib\transformation\file\index.js:590
throw err;
^

SyntaxError: C:/xampp/htdocs/angular-node/server/config/seed.js: Unexpected token (49:5)
47 | .catch(err => console.log('error populating things', err));
48 |

49 | });
| ^
50 | }
51 | }
52 |**
at Parser.pp$5.raise (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:4452:13)
at Parser.pp.unexpected (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:1761:8)
at Parser.pp$3.parseExprAtom (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:3748:12)
at Parser.pp$3.parseExprSubscripts (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:3492:19)
at Parser.pp$3.parseMaybeUnary (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:3472:19)
at Parser.pp$3.parseExprOps (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:3402:19)
at Parser.pp$3.parseMaybeConditional (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:3379:19)
at Parser.pp$3.parseMaybeAssign (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:3342:19)
at Parser.pp$3.parseExpression (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:3304:19)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:1906:19)
at Parser.pp$1.parseBlockBody (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:2268:21)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:2247:8)
at Parser.pp$3.parseFunctionBody (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:4233:22)
at Parser.pp$1.parseFunction (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:2386:8)
at Parser.pp$1.parseExport (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:2640:19)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\angular-node\node_modules\babylon\lib\index.js:1884:74)
[nodemon] app crashed - waiting for file changes before starting...

Item Version
generator-angular-fullstack x.x.x
Node v6.10.3
npm 4.6.1
Operating System Windows 10
Item Answer
Transpiler Babel
Markup HTML
CSS SCSS
Router ngRoute
Client Tests Jasmine
DB MongoDB
Auth N
etc etc
@Awk34 Awk34 closed this as completed in 65a2438 May 25, 2017
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