vyakymenko / angular-seed-express

[DEPRECATED, Please use https://github.com/vyakymenko/angular-express] Extensible, reliable and modular starter project for Angular 7 with statically typed build AoT compilation, Express server and PM2 Daemon.

Home Page:https://github.com/vyakymenko/angular-seed-express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Errors SHA - 78def1e893a1fdad14a48988902e24382d8fa483

redevill opened this issue · comments

[ x] bug report => search github for a similar issue or PR before submitting
I'd be happy to do a pull request, but would need guidance on the procedure...

First error is obvious - line 14 defines _clientDir as a constant set to dev. Then in the production section line 68, it tries to reset it to prod.
_src/server/index.ts(68,5): error TS2540: Cannot assign to 'clientDir' because it is a constant or a read-only property.

Second error - Perhaps a typecheck line 96? as per this: https://stackoverflow.com/questions/30621139/typescript-union-type-not-working
src/server/index.ts(97,37): error TS2339: Property 'port' does not exist on type 'string | AddressInfo'.

The last errors, seem to be addressed by this - angular/angular#24245
node_modules/@types/node/index.d.ts(167,14): error TS2687: All declarations of 'observable' must have identical modifiers.
node_modules/rxjs/internal/symbol/observable.d.ts(4,9): error TS2687: All declarations of 'observable' must have identical modifiers.

Current behavior
download the latest code and do: npm start
During the build there are 4 errors listed.

Expected behavior
the app should build and run without error.

Please tell us about your environment:

Running the seed project under webstorm with tsc 2.3.4

  • Angular Seed Version:
    78def1e

  • Node: node --version =
    9.10.1

@redevill ,

Thanks for this issue, resolved. Please pull latest changes from the repository.