Closed CramericaIndustries closed 6 years ago
+1
Could you tell me how can I reproduce this issue? What kind of starter did you use etc? I've just tried with angular universal and had no problems.
I tried to use it inside this component: https://github.com/Urigo/angular-meteor-docs/blob/master/src/app/website/tutorials-container/tutorials-container.component.ts
Please note that this codebase is heavily outdated, it still uses the old angular2-universal
, doesn't work with node.js
8 and requires you to use yarn
instead of npm
to get it working.
Could you test if you're still getting the error in latest version 1.1.2
?
Closing due to missing feedback
Hi, when I'm launching my app with Angular Universal / Platform Server I get the following error:
this is the command that I use to launch the app with Universal:
ts-node --ignore=false src/server.ts
No errors are thrown when I launch my app with
ng serve
. The ngx-order-pipe is then working quite nicely. Angular Universal has no problem finding the other third party module (ng2-nouislider) that I'm using in my project. It is stored in the _nodemodules directory as well. Therefore I'm not sure if the root of the problem is in my project or in the ngx-order-pipe code.I'm importing the ngx-order-pipe in my app.module.ts file like so:
import { OrderModule } from 'ngx-order-pipe';
and this is how I'm importing the ng2-nouislider:import { NouisliderModule } from 'ng2-nouislider';
Some more info about my environment:
Thanks for your help in advance!