After adding FileUpload I got this runtime error:

Other components(radio, checkbox) work fine.
My project is based on https://github.com/aspnet/JavaScriptServices/tree/dev/templates/Angular2Spa
In webpack(webpack.config.vendor.js) I'm referencing these dependencies:
'primeng/components/fileupload/fileupload',
'primeng/components/fileupload/fileupload.css',
And FileUploadModuleis registered in app.module.ts.
Any ideas?
"PrimeNG 4 requires Angular 4, if you are on Angular 2 use PrimeNG 2.0.x instead."
After downgrading to 2.0.x, problem sorted.
I am getting the below error.
'ng-template' is not a known element:
"primeng": "^2.0.4",
"@angular/core": "^2.4.0",
Imported the below modules
DataTableModule,
SharedModule
Looks like its unable to find the module in which the "ng-template" directive is present.
Please help.
got the same error -
my html is --

component-ts -just the 2 lists initialised with data
App.Module
import {PickListModule, ConfirmDialogModule, SharedModule} from from 'primeng/primeng';
@NgModule({
imports: [PickListModule, ConfirmDialogModule, SharedModule]
But for me my other code with DataTableModule works fine
@balajiswaroop
I am getting the below error.
'ng-template' is not a known element:
I had exactly the same problem today on
"primeng": "^2.0.4",
"@angular/core": "2.4.9",
found a solution:
use 'template' instead of 'ng-template' in your html template.
I think that errors appears because of version, that is ng-template added only in Angular 4 core.
using template tag works just fine, thanks a lot @AKorshunov87
ng-template is Angular4 only, you need to target primeng version which is build for Angular2
template worked for me too. Thanks!
template worked for me too. Thank you!!
template work for me too !! just find mutliselect-dropdown.ts replace ng-template with template
I'm getting the same error..but I couldn't find where to replace the ng-template to just template. Help plz...
@lucky9abhi you can find this file "mutliselect-dropdown.ts" inside node_modules folder with package name you installed.
use only template is work fine . thank you
i'm getting same error, when using p-picklist in ngprime, can you please tell me how to use "template" insted of "ng-template"?
i'm getting error:
zone.js:522 Unhandled Promise rejection: Template parse errors:
"let-" is only supported on template elements. ("gleave)="onListDragLeave()" (drop)="onListDrop($event, -1)">
"let-" is only supported on template elements. ("(drop)="onListDrop($event, -1)">
"let-" is only supported on template elements. ("Drop($event, -1)">
Can't bind to 'ngTemplateOutletContext' since it isn't a known property of 'ng-container'.
Most helpful comment
@balajiswaroop
I had exactly the same problem today on
"primeng": "^2.0.4",
"@angular/core": "2.4.9",
found a solution:
use 'template' instead of 'ng-template' in your html template.
I think that errors appears because of version, that is ng-template added only in Angular 4 core.