Skip to content

multiple errors after a fresh install with 5.0.0-rc1 #2711

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

Closed
daton89 opened this issue Apr 20, 2018 · 4 comments
Closed

multiple errors after a fresh install with 5.0.0-rc1 #2711

daton89 opened this issue Apr 20, 2018 · 4 comments

Comments

@daton89
Copy link

daton89 commented Apr 20, 2018

~/Workspace/pk-share-link is 📦  v0.0.0 via ⬢ v8.9.4 took 5s
➜ gulp serve
[19:11:46] Failed to load external module @babel/register
[19:11:46] Requiring external module babel-register
[19:11:49] Using gulpfile ~/Workspace/pk-share-link/gulpfile.babel.js
[19:11:49] Starting 'serve'...
[19:11:49] Starting 'clean:tmp'...
[19:11:49] Starting 'lint:scripts'...
[19:11:49] Starting 'lint:scripts:client'...
[19:11:49] Starting 'lint:scripts:server'...
[19:11:49] Starting 'inject'...
[19:11:49] Starting 'inject:scss'...
[19:11:49] Starting 'copy:fonts:dev'...
[19:11:49] Starting 'env:all'...
[19:11:49] Finished 'env:all' after 30 ms
[19:11:49] Finished 'clean:tmp' after 83 ms
[19:11:49] gulp-inject Nothing to inject into app.scss.

Could not find implementations for the following rules specified in the configuration:
    label-undefined
    no-duplicate-key
Try upgrading TSLint and/or ensuring that you have all necessary custom rules installed.
If TSLint was recently upgraded, you may have old rules configured which need to be cleaned up.

Warning: The 'no-unused-variable' rule requires type information.
Warning: The 'no-use-before-declare' rule requires type information.
[19:11:49] Finished 'inject:scss' after 542 ms
[19:11:49] Finished 'inject' after 542 ms
[19:11:50] Finished 'copy:fonts:dev' after 921 ms
[19:11:50] Finished 'lint:scripts:client' after 982 ms
[19:11:50] Finished 'lint:scripts:server' after 1.13 s
[19:11:50] Finished 'lint:scripts' after 1.14 s
[19:11:50] Starting 'start:server'...
[19:11:50] Finished 'start:server' after 8.18 ms
[19:11:50] Starting 'start:client'...
[nodemon] 1.17.3
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /Users/daton/Workspace/pk-share-link/server/**/*
[nodemon] starting `node server`

[at-loader] Using [email protected] from typescript and "tsconfig.json" from /Users/daton/Workspace/pk-share-link/tsconfig.json.

(node:17607) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
finished populating things
Express server listening on 9000, in development mode

[at-loader] Checking started in a separate process...

[at-loader] Ok, 0.025 sec.
Hash: b92e6ebcfc3894dbddd3
Version: webpack 3.11.0
Time: 10825ms
                  Asset     Size  Chunks                    Chunk Names
          app.bundle.js  4.08 MB    0, 1  [emitted]  [big]  app
    polyfills.bundle.js   333 kB       1  [emitted]  [big]  polyfills
       vendor.bundle.js   571 kB       2  [emitted]  [big]  vendor
      app.bundle.js.map  5.07 MB    0, 1  [emitted]         app
polyfills.bundle.js.map   426 kB       1  [emitted]         polyfills
   vendor.bundle.js.map   698 kB       2  [emitted]         vendor
     ../client/app.html  1.34 kB          [emitted]

WARNING in ./node_modules/@angular/core/esm5/core.js
6570:15-36 Critical dependency: the request of a dependency is an expression
 @ ./node_modules/@angular/core/esm5/core.js
 @ ./client/app/app.ts
 @ multi webpack-dev-server/client?http://localhost:3000/ webpack/hot/dev-server ./client/app/app.ts

WARNING in ./node_modules/@angular/core/esm5/core.js
6590:15-102 Critical dependency: the request of a dependency is an expression
 @ ./node_modules/@angular/core/esm5/core.js
 @ ./client/app/app.ts
 @ multi webpack-dev-server/client?http://localhost:3000/ webpack/hot/dev-server ./client/app/app.ts

ERROR in ./node_modules/raw-loader!./node_modules/sass-loader/lib/loader.js!./client/app/app.scss
Module build failed:
@import 'admin/admin.scss';
^
      File to import not found or unreadable: admin/admin.scss.
      in /Users/daton/Workspace/pk-share-link/client/app/app.scss (line 36, column 1)
 @ ./node_modules/style-loader!./client/app/app.scss 4:14-121 18:2-22:4 19:20-127
 @ ./client/app/app.ts
 @ multi webpack-dev-server/client?http://localhost:3000/ webpack/hot/dev-server ./client/app/app.ts
Child html-webpack-plugin for "../client/app.html":
                 Asset     Size  Chunks  Chunk Names
    ../client/app.html  27.3 kB       0
webpack: Failed to compile.
webpack: Compiling...

[at-loader] Checking started in a separate process...

[at-loader] Ok, 0.002 sec.
Hash: 60081c00f12ffd5abfa1
Version: webpack 3.11.0
Time: 1938ms
                               Asset      Size  Chunks                    Chunk Names
fbf47511146008634f37.hot-update.json  44 bytes          [emitted]
                       app.bundle.js   4.08 MB    0, 1             [big]  app
                 polyfills.bundle.js    333 kB       1             [big]  polyfills
                    vendor.bundle.js    571 kB       2  [emitted]  [big]  vendor
b92e6ebcfc3894dbddd3.hot-update.json  35 bytes          [emitted]
                   app.bundle.js.map   5.07 MB    0, 1                    app
             polyfills.bundle.js.map    426 kB       1                    polyfills
                vendor.bundle.js.map    698 kB       2  [emitted]         vendor
                  ../client/app.html   1.34 kB          [emitted]

WARNING in ./node_modules/@angular/core/esm5/core.js
6570:15-36 Critical dependency: the request of a dependency is an expression
 @ ./node_modules/@angular/core/esm5/core.js
 @ ./client/app/app.ts
 @ multi webpack-dev-server/client?http://localhost:3000/ webpack/hot/dev-server ./client/app/app.ts

WARNING in ./node_modules/@angular/core/esm5/core.js
6590:15-102 Critical dependency: the request of a dependency is an expression
 @ ./node_modules/@angular/core/esm5/core.js
 @ ./client/app/app.ts
 @ multi webpack-dev-server/client?http://localhost:3000/ webpack/hot/dev-server ./client/app/app.ts

ERROR in ./node_modules/raw-loader!./node_modules/sass-loader/lib/loader.js!./client/app/app.scss
Module build failed:
@import 'admin/admin.scss';
^
      File to import not found or unreadable: admin/admin.scss.
      in /Users/daton/Workspace/pk-share-link/client/app/app.scss (line 36, column 1)
 @ ./node_modules/style-loader!./client/app/app.scss 4:14-121 18:2-22:4 19:20-127
 @ ./client/app/app.ts
 @ multi webpack-dev-server/client?http://localhost:3000/ webpack/hot/dev-server ./client/app/app.ts
Child html-webpack-plugin for "../client/app.html":
                                   Asset      Size  Chunks             Chunk Names
                      ../client/app.html   27.3 kB       1
    fbf47511146008634f37.hot-update.json  44 bytes          [emitted]
webpack: Failed to compile.

----- | -----
generator-angular-fullstack | 5.0.0-rc1
Node | 8.9.4
npm | 5.6.0
Operating System | OS X 10.11.6

----- | -----
Transpiler | TypeScript
Markup | HTML
CSS | SCSS
Router | ngRoute
Client Tests | Jasmine
DB | MongoDB
Auth | N
Bootstrap | N

this is my output after run gulp serve in a fresh app generation

after i deleted the import of admin.scss (that doesn't exist) my webpack compile with warnings and the project doesn't work because when i open the app in the browser it it throws Uncaught SyntaxError: Unexpected token < in vendor app and polyfill

how can i fix these errors to make the app working?

do you think is possible to update angular to version 6 and how can i do it?

regards

@albert-92
Copy link
Contributor

Check https://angular-fullstack.github.io/get-started/running/

It is npm run start:server and npm run start:client instead of gulp serve in 5.x.x

@daton89
Copy link
Author

daton89 commented Apr 22, 2018

@albert-92
thank you for your reply, i've tried to run server and client separately... but when i run npm run start:client the result is the same...

~/Workspace/pk-share-link is 📦  v0.0.0 via ⬢ v8.9.4
➜ npm run start:client

> [email protected] start:client /Users/daton/Workspace/pk-share-link
> webpack-dev-server --config webpack.dev.js

Project is running at http://localhost:8080/
webpack output is served from /
Content not from webpack is served from ./client/
404s will fallback to app.html

[at-loader] Using [email protected] from typescript and "tsconfig.json" from /Users/daton/Workspace/pk-share-link/tsconfig.json.


[at-loader] Checking started in a separate process...

[at-loader] Ok, 0.029 sec.
Hash: 2339ca24a6760dc8f12f
Version: webpack 3.11.0
Time: 10911ms
                  Asset     Size  Chunks                    Chunk Names
          app.bundle.js   3.8 MB       0  [emitted]  [big]  app
    polyfills.bundle.js   335 kB       1  [emitted]  [big]  polyfills
       vendor.bundle.js   894 kB       2  [emitted]  [big]  vendor
      app.bundle.js.map  4.75 MB       0  [emitted]         app
polyfills.bundle.js.map   426 kB       1  [emitted]         polyfills
   vendor.bundle.js.map  1.08 MB       2  [emitted]         vendor
     ../client/app.html  1.34 kB          [emitted]

WARNING in ./node_modules/@angular/core/esm5/core.js
6570:15-36 Critical dependency: the request of a dependency is an expression
 @ ./node_modules/@angular/core/esm5/core.js
 @ ./client/app/app.ts
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./client/app/app.ts

WARNING in ./node_modules/@angular/core/esm5/core.js
6590:15-102 Critical dependency: the request of a dependency is an expression
 @ ./node_modules/@angular/core/esm5/core.js
 @ ./client/app/app.ts
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./client/app/app.ts
Child html-webpack-plugin for "../client/app.html":
                 Asset     Size  Chunks  Chunk Names
    ../client/app.html  27.3 kB       0
webpack: Compiled with warnings.

and in the browser on localhost:9000

vendor.bundle.js:1 Uncaught SyntaxError: Unexpected token <
app.bundle.js:1 Uncaught SyntaxError: Unexpected token <
polyfills.bundle.js:1 Uncaught SyntaxError: Unexpected token <
content_script.js:24 initializing Content Script message listener

@daton89
Copy link
Author

daton89 commented Apr 22, 2018

ah on 8080 it is working now...
@albert-92 do you think is possible to update angular to version 6 and how can i do it?
i see the two webpack warnings also in browser console.. do you know what they mean?
thank you

@Awk34
Copy link
Member

Awk34 commented Apr 23, 2018

We'll probably wait until Angular 6 is released.

The warnings are coming from Angular itself; there's not much we can do about them, and I wouldn't worry about them either.

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