ngx-datatable: angular2-data-table.d.ts' is not a module. Please contact the package author to update the package definition
release/angular2-data-table.d.ts
line 483 add prefix keyword export is compile success
export declare module "angular2-data-table"
my environment is angular-cli
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 45 (21 by maintainers)
Commits related to this issue
- Remove core-js reference Attempt to fix #55 as this does not seem to be required anymore — committed to adaur/angular2-data-table by adaur 8 years ago
One more update, I found out that the
issue was introduced by rc5, as stated under this: https://github.com/angular/angular/issues/10618
So, the temporary workaround is to add
to
webpack.prod.configTry now please. This file is generated by the build, need to figure out how to do this automagic for now i manually added
@amcdnl I had just updated to 0.3.3 (previous post was like 0.2.5). Building was fine, but I still got
during production runtime.
Also, you had mentioned UMD build, but I don’t know how to set it up in webpack. any hints? Thx
I don’t know if that will help some of you but we never know…
To fix this error:
I have updated typescript to 2.0.0 - previously in 1.8.0
To fix this error:
Template parse errors: Can't bind to 'rows' since it isn't a known propertyI have updated angular to rc5 - previously in rc4It also raised another error about types core-js not find so I installed @types/core-js via npm
Since I did many trials I wouldn’t guaranty the execution order. Hopefully that helps.
Ok so the problem is just that you reference your scss in the source files, you should either use the
stylesproperty of the components and use an appropriate loader to transform your scss to css, or not import the scss files in your ts source files, and build the styles separately.edit: this doesn’t fix the thing in the end, I edited the source files to remove those scss declarations, and now I have the nice
zone.js:484Unhandled Promise rejection: Template parse errors: Can't bind to 'rows' since it isn't a known property of 'datatable'.error back, I’ll keep searching