Topic: ANGULAR BOOTSTRAP 4.1.0 - Universal server side rendering error
ts-node src/server.ts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the quickstart-angular2@1.0.0 start script 'ts-node src/server.ts'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the quickstart-angular2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ts-node src/server.ts
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs quickstart-angular2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls quickstart-angular2
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:wamp64wwwmdb_angularnpm-debug.log
As I know the Mouse and KeyBoardEvents tags are not supported in node. I found a similar issue here https://github.com/valor-software/ngx-bootstrap/issues/964 but here was used webpack instead angular-cli and the solution was to use a regex to replace the Events with a node supported tag. Unfortunately I couldn't found any way to solve this issue with angular-cli. I would be happy if you could check it and if possible to find a solution for it. Thank you in advance. Rafał Rogulski answered 7 years ago
C:wamp64wwwmdb_angularsrcapptypescriptsangular-bootstrap-mdfreecarouselcarouselComponent.ts
, and find ther KeyboardEvent
and replace it to any
.
Regards gauravsoni2k pro commented 7 years ago
@kepner I am also facing same issue have you found any solution ?kepner pro premium priority commented 7 years ago
@gauravsoni2k I was able only to build the production app with the solution from Rafał, but by the rendering I got other error.Adrian Sawicki answered 7 years ago
kepner pro premium priority commented 7 years ago
Yes I tried, but this will fix only this error. unfortunately there are more errors by the rendering of the app server side with nodejs.Adrian Sawicki answered 7 years ago
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- User: Pro
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No