Angular App Shell – Error with Toast Service


Topic: Angular App Shell – Error with Toast Service

Bill Bensing pro asked 7 years ago

Hey all, when running the following command, I get an error with the mdb-pro toast service.  Any idea on how to resolve this? My end goal is to build an Angular PWA, and this command builds my app shell from the home route.

 

COMMAND
./node_modules/.bin/ngu-app-shell --module src/app/app.module.ts --out dist/index.html
ERROR
.../node_modules/ng-mdb-pro/pro/alerts/toast/toast.service.ts:1(function (exports, require, module, __filename, __dirname) { import { Injectable, Injector, ComponentRef, Inject, SecurityContext } from \'@angular/core\';^^^^^^SyntaxError: Unexpected token importat createScript (vm.js:80:10)at Object.runInThisContext (vm.js:152:10)at Module._compile (module.js:624:28)at Module._extensions..js (module.js:671:10)at Object.require.extensions.(anonymous function) [as .ts] (.../node_modules/ts-node/src/index.ts:384:14)at Module.load (module.js:573:32)at tryModuleLoad (module.js:513:12)at Function.Module._load (module.js:505:3)at Module.require (module.js:604:17)at require (internal/module.js:11:18)


Damian Gemza staff answered 7 years ago

Dear Bill, Which command do you use? Could you provide me some reproduction steps? Best Regards, Damian

Bill Bensing pro commented 7 years ago

Damian...let me get these for you. This issue fell off my radar.

Bill Bensing pro commented 7 years ago

Damian...let me get these for you. This issue fell off my radar.

Damian Gemza staff commented 7 years ago

Dear Bill, unfortunately, I don't understand you. Could you define your problem with other words?

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No