Stabzs / Angular2-Toaster

Angular2-toaster is an asynchronous, non-blocking Angular Toaster Notification library
MIT License
334 stars 93 forks source link

Not woring on angular 8 ssr(server side rendering) #199

Closed DimitrijeJankovic closed 4 years ago

DimitrijeJankovic commented 4 years ago

node dist/server

/Users//Documents/ds-web/node_modules/angular2-toaster/src/toaster-container.component.js:10 import { Component, Input, ChangeDetectorRef, NgZone } from '@angular/core'; ^

SyntaxError: Unexpected token { at new Script (vm.js:79:7) at createScript (vm.js:251:10) at Object.runInThisContext (vm.js:303:10) at Module._compile (internal/modules/cjs/loader.js:657:28) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ds-web@0.0.0 serve:ssr: node dist/server npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ds-web@0.0.0 serve:ssr script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users//.npm/_logs/2020-02-23T20_53_23_588Z-debug.log

Stabzs commented 4 years ago

The library has been republished under version 10.0.0. If this is still an issue in version 10, please reopen the issue. Thanks!