Skip to content

Compatibility with Angular 5 #85

Description

@DenisLaboureyras

Hello,

Thanks for your awesome plugin, I've used it for 3 months now and it works like a charm.
I've tried today to upgrade my app to Angular 5, I managed to do it on my client config, but the server build is throwing me a lot of errors (see below).
Am I doing something wrong or do you plan on upgrading your module to Angular 5 ?

Kind regards,
Denis

ERROR in ./node_modules/angular-ssr/build/application/compiler/ngc/create.js
Module not found: Error: Can't resolve '@angular/compiler-cli/src/path_mapped_compiler_host' in '/home/data/app/node_modules/angular-ssr/build/application/compiler/ngc'
@ ./node_modules/angular-ssr/build/application/compiler/ngc/create.js 4:34-96
@ ./node_modules/angular-ssr/build/application/compiler/ngc/compiler.js
@ ./node_modules/angular-ssr/build/application/compiler/factory.js
@ ./node_modules/angular-ssr/build/application/compiler/index.js
@ ./node_modules/angular-ssr/build/application/index.js
@ ./node_modules/angular-ssr/build/index.js
@ ./src/angular/main.server.ts
@ ./src/angular/main.server-ssr.ts

ERROR in ./node_modules/angular-ssr/node_modules/@angular/cli/models/webpack-configs/production.js
Module not found: Error: Can't resolve '@angular/service-worker/build/webpack' in '/home/data/app/node_modules/angular-ssr/node_modules/@angular/cli/models/webpack-configs'
@ ./node_modules/angular-ssr/node_modules/@angular/cli/models/webpack-configs/production.js 74:43-91
@ ./node_modules/angular-ssr/node_modules/@angular/cli/models/webpack-configs/index.js
@ ./node_modules/angular-ssr/node_modules/@angular/cli/models/webpack-config.js
@ ./node_modules/angular-ssr/build/application/compiler/webpack/config/cli.js
@ ./node_modules/angular-ssr/build/application/compiler/webpack/config/index.js
@ ./node_modules/angular-ssr/build/application/compiler/factory.js
@ ./node_modules/angular-ssr/build/application/compiler/index.js
@ ./node_modules/angular-ssr/build/application/index.js
@ ./node_modules/angular-ssr/build/index.js
@ ./src/angular/main.server.ts
@ ./src/angular/main.server-ssr.ts

ERROR in [at-loader] ./node_modules/angular-ssr/build/application/compiler/ngc/resource-resolver.d.ts:1:10
TS2305: Module '"/home/data/app/node_modules/@angular/compiler-cli/index"' has no exported member 'ModuleResolutionHostAdapter'.

ERROR in [at-loader] ./node_modules/angular-ssr/build/platform/document/tokens.d.ts:1:10
TS2305: Module '"/home/data/app/node_modules/@angular/core/core"' has no exported member 'OpaqueToken'.

ERROR in [at-loader] ./node_modules/angular-ssr/build/platform/module/tokens.d.ts:1:10
TS2305: Module '"/home/data/app/node_modules/@angular/core/core"' has no exported member 'OpaqueToken'.

ERROR in [at-loader] ./node_modules/angular-ssr/build/platform/platform.d.ts:2:22
TS2420: Class 'ServerPlatform' incorrectly implements interface 'PlatformRef'.
Property '_injector' is missing in type 'ServerPlatform'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions