This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Error on first launch #2561
Copy link
Copy link
Closed
Description
I just installed everything and setup everything correctly with no error.
Now I started Webstorm and use "gulp serve" this is the errors that appeared although the website seems to work partly.
"C:\Program Files\JetBrains\WebStorm 2017.1.2\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" C:\Users\***\WebstormProjects\AngularFS\node_modules\gulp\bin\gulp.js --color --gulpfile C:\Users\***\WebstormProjects\AngularFS\gulpfile.babel.js serve
[16:01:19] Requiring external module babel-register
[16:01:29] Using gulpfile ~\WebstormProjects\AngularFS\gulpfile.babel.js
[16:01:29] Starting 'serve'...
[16:01:29] Starting 'clean:tmp'...
[16:01:29] Starting 'lint:scripts'...
[16:01:29] Starting 'lint:scripts:client'...
[16:01:29] Starting 'lint:scripts:server'...
[16:01:29] Starting 'inject'...
[16:01:29] Starting 'inject:less'...
[16:01:29] Starting 'copy:fonts:dev'...
[16:01:29] Starting 'env:all'...
[16:01:29] Finished 'env:all' after 47 ms
[16:01:29] Starting 'typings'...
[16:01:31] Finished 'clean:tmp' after 1.75 s
[16:01:31] [gulp-tslint] error (no-use-before-declare) polyfills.ts[21, 5]: variable 'ENV' used before declaration
[16:01:31] [gulp-tslint] error (whitespace) polyfills.ts[21, 3]: missing whitespace
[16:01:31] [gulp-tslint] error (whitespace) polyfills.ts[25, 3]: missing whitespace
[16:01:33] gulp-inject 4 files into app.less.
[16:01:33] Finished 'inject:less' after 3.84 s
[16:01:33] Finished 'inject' after 3.84 s
[16:01:33] [gulp-tslint] error (whitespace) app/app.ts[58, 11]: missing whitespace
[16:01:33] [gulp-tslint] error (no-trailing-whitespace) app/account/index.ts[3, 42]: trailing whitespace
[16:01:34] [gulp-tslint] error (class-name) components/auth/auth.service.ts[6, 7]: Class name must be in pascal case
[16:01:34] [gulp-tslint] error (whitespace) components/auth/auth.service.ts[28, 5]: missing whitespace
[16:01:35] [gulp-tslint] error (whitespace) components/auth/router.decorator.ts[7, 7]: missing whitespace
[16:01:35] [gulp-tslint] error (whitespace) components/auth/router.decorator.ts[11, 7]: missing whitespace
[16:01:35] [gulp-tslint] error (whitespace) components/auth/router.decorator.ts[13, 11]: missing whitespace
[16:01:35] [gulp-tslint] error (whitespace) components/auth/router.decorator.ts[25, 11]: missing whitespace
[16:01:36] Finished 'copy:fonts:dev' after 6.51 s
[16:01:36] Finished 'typings' after 6.75 s
[16:01:36]
C:\Users\***\WebstormProjects\AngularFS\server\config\seed.js
50:5 error Unreachable code no-unreachable
C:\Users\***\WebstormProjects\AngularFS\server\sqldb\index.js
7:8 error 'path' is defined but never used no-unused-vars
C:\Users\***\WebstormProjects\AngularFS\server\api\thing\thing.events.js
22:25 error 'Thing' is already declared in the upper scope no-shadow
C:\Users\***\WebstormProjects\AngularFS\server\api\user\user.events.js
22:25 error 'User' is already declared in the upper scope no-shadow
C:\Users\***\WebstormProjects\AngularFS\server\api\user\user.model.js
110:13 error Unexpected alias '_this' for 'this' consistent-this
113:13 error Expected return with your callback function callback-return
117:13 error Expected return with your callback function callback-return
119:13 error Expected return with your callback function callback-return
132:19 error 'args' is defined but never used no-unused-vars
137:19 warning Use the rest parameters instead of 'arguments' prefer-rest-params
138:22 warning Use the rest parameters instead of 'arguments' prefer-rest-params
140:26 warning Use the rest parameters instead of 'arguments' prefer-rest-params
141:22 warning Use the rest parameters instead of 'arguments' prefer-rest-params
152:13 error Expected return with your callback function callback-return
184:15 error Expected return with your callback function callback-return
✖ 15 problems (11 errors, 4 warnings)
[16:01:36] Finished 'lint:scripts:server' after 7.21 s
[16:01:36] [gulp-tslint] error (whitespace) app/account/settings/settings.controller.ts[28, 7]: missing whitespace
[16:01:36] [gulp-tslint] error (no-trailing-whitespace) app/account/signup/signup.controller.ts[48, 58]: trailing whitespace
[16:01:36] [gulp-tslint] error (whitespace) app/account/signup/signup.controller.ts[33, 7]: missing whitespace
[16:01:36] [gulp-tslint] error (whitespace) app/account/signup/signup.controller.ts[47, 11]: missing whitespace
[16:01:36] Finished 'lint:scripts:client' after 7.31 s
[16:01:36] Finished 'lint:scripts' after 7.31 s
[16:01:36] Starting 'start:server'...
[16:01:36] Finished 'start:server' after 18 ms
[16:01:36] Starting 'start:client'...
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: C:\Users\***\WebstormProjects\AngularFS\server/**/*
[nodemon] starting `node server`
[BS] Proxying: http://localhost:9000
[BS] Access URLs:
--------------------------------------
Local: http://localhost:3000
External: http://172.27.60.213:3000
--------------------------------------
UI: http://localhost:3002
UI External: http://172.27.60.213:3002
--------------------------------------
finished populating things
Express server listening on 9000, in development mode
[16:01:52] Finished 'start:client' after 16 s
[16:01:52] Starting 'watch'...
[16:01:52] Finished 'watch' after 214 ms
[16:01:52] Finished 'serve' after 23 s
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
webpack: wait until bundle finished: /
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
Error: ENOENT: no such file or directory, stat 'C:\Users\***\WebstormProjects\AngularFS\client\index.html'
GET / 404 41.122 ms - 248
GET / 404 431.045 ms - 248
GET / 404 435.423 ms - 248
GET / 404 330.939 ms - 248
GET / 404 339.271 ms - 248
GET / 404 440.227 ms - 248
GET / 404 372.276 ms - 248
GET / 404 400.078 ms - 248
GET / 404 405.027 ms - 248
GET / 404 390.855 ms - 248
GET / 404 395.341 ms - 248
GET / 404 376.679 ms - 248
webpack done hook
Hash: c61fe232a3a5bc4fc424
Version: webpack 1.15.0
Time: 12882ms
Asset Size Chunks Chunk Names
app.bundle.js 475 kB 0 [emitted] app
polyfills.bundle.js 211 kB 1 [emitted] polyfills
vendor.bundle.js 2.42 MB 2 [emitted] vendor
app.bundle.js.map 622 kB 0 [emitted] app
polyfills.bundle.js.map 271 kB 1 [emitted] polyfills
vendor.bundle.js.map 2.83 MB 2 [emitted] vendor
../client/index.html 1.39 kB [emitted]
Child html-webpack-plugin for "..\client\index.html":
Asset Size Chunks Chunk Names
../client/index.html 2.7 kB 0
webpack: Compiled successfully.
[default] Checking started in a separate process...
SocketIO / [127.0.0.1:53851] CONNECTED
GET /api/things 200 114.279 ms - -
[default] C:/Users/***/WebstormProjects/AngularFS/client/components/auth/auth.service.ts:3:8
Module '"lodash"' has no default export.
[default] C:/Users/***/WebstormProjects/AngularFS/client/components/auth/auth.service.ts:192:14
Supplied parameters do not match any signature of call target.
SocketIO / [127.0.0.1:53851] DISCONNECTED
SocketIO / [127.0.0.1:53899] CONNECTED
(node:2396) Warning: a promise was created in a handler but was not returned from it, see http://goo.gl/rRqMUw
at Function.Promise.bind (C:\Users\***\WebstormProjects\AngularFS\node_modules\bluebird\js\release\bind.js:65:20)
GET /api/things 304 86.733 ms - -
GET /api/users 401 35.854 ms - 539
UnauthorizedError: jwt malformed
at C:\Users\***\WebstormProjects\AngularFS\node_modules\express-jwt\lib\index.js:102:22
at C:\Users\***\WebstormProjects\AngularFS\node_modules\jsonwebtoken\verify.js:27:18
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
(node:2396) Warning: a promise was created in a handler but was not returned from it, see http://goo.gl/rRqMUw
at Function.Promise.bind (C:\Users\***\WebstormProjects\AngularFS\node_modules\bluebird\js\release\bind.js:65:20)
GET /api/things 304 53.821 ms - -
GET /api/users 401 29.114 ms - 539
UnauthorizedError: jwt malformed
at C:\Users\***\WebstormProjects\AngularFS\node_modules\express-jwt\lib\index.js:102:22
at C:\Users\***\WebstormProjects\AngularFS\node_modules\jsonwebtoken\verify.js:27:18
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
(node:2396) Warning: a promise was created in a handler but was not returned from it, see http://goo.gl/rRqMUw
at Function.Promise.bind (C:\Users\***\WebstormProjects\AngularFS\node_modules\bluebird\js\release\bind.js:65:20)
GET /api/things 304 49.081 ms - -
Metadata
Metadata
Assignees
Labels
No labels
Activity
Awk34 commentedon May 11, 2017
Can you successfully log in and view the list of users?
rXp commentedon May 11, 2017
@Awk34 No I can't.
With the admin account and the test account I get the error : "The email is not registered".
I am on Windows 10 64b. Is there some node that is not compatible with windows ?
Awk34 commentedon May 11, 2017
It's recommended to be using something like Node 6.4.x or above
rXp commentedon May 11, 2017
@Awk34
I have Node JS 7.10 and I'm not using Mongo I am using a relational database.
Is there any special file that I need to config ?
Awk34 commentedon May 11, 2017
This would all have been helpful information. Please fill this out:
rXp commentedon May 11, 2017
@Awk34 Yes sorry about that its been a long week
I use the latest version of Webstorm for my IDE but I installed everything myself without Webstorm.
rXp commentedon May 12, 2017
I've fix an issue with postgresql now the tables are created and two of them are filled.
But now the Users table is not filled and there are still a number of errors :
Awk34 commentedon May 12, 2017
You say you scaffolded with auth enabled?
Hmm, I'm not seeing the users getting populated from
server/config/seed.js. I see this:but nothing about seeding users. Please check the
seed.jsfilerXp commentedon May 13, 2017
@Awk34
The issue is that there is a return for Squelize for Thing, so I removed it to have the users created.
Now I also fixed the import of lodash in the client part of the app but there still several issue with one beeing when an admin is identified.
rXp commentedon May 14, 2017
@Awk34 I solved the problem :)
In file
The error was that hasRole need one role and does not accept
...I just had to modify the call to Auth.hasRole for the issue to go away.The other problems are ESLint ones which is not bad.
isAdmin(...args) { return Auth.hasRole(Reflect.apply([].concat, ['admin'], args)); },Line 191 - 193 : auth.service.ts
fix(client:auth): fix isAdmin call
Awk34 commentedon May 17, 2017
This should fix this then, correct?
#2576
rXp commentedon May 17, 2017
These are the changes I made for it to be fixed :
at : /client/components/auth/auth.service.ts
I changed
import _ from 'lodash';intoimport * as _ from 'lodash';at : /client/components/auth/auth.service.ts
I changed
isAdmin(...args) { return Auth.hasRole(...Reflect.apply([].concat, ['admin'], args)); },intoisAdmin(...args) { return Auth.hasRole(Reflect.apply([].concat, ['admin'], args)); },rmnguleria commentedon May 18, 2017
Thanks a lot @rXp .