This is a migrated thread and some comments may be shown as answers.

Angular 2 - Unexpected Model

2 Answers 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 17 Dec 2016, 12:34 PM

I'm trying to get the latest kendo angular 2 drop to work in my angular 2 + web pack project.  I followed the startup docs and installed the buttons and default styles using npm.

Webpack version: 1.14.0

Angular 2.3

Kendo buttons ^0.14.2

kendo-theme-default: ^1.32.1

 

Webpack builds the app fine

When i startup my web app I see this in the console 

 

Error: Unexpected module 'ButtonsModule' declared by the module 'AppModule'
_reportError — compiler.umd.js:672
(anonymous function) — compiler.umd.js:17758
forEach
getNgModuleMetadata — compiler.umd.js:17740
_loadModules — compiler.umd.js:26465
_compileModuleAndComponents — compiler.umd.js:26425
compileModuleAsync — compiler.umd.js:26402
_bootstrapModuleWithZone — core.umd.js:8417
(anonymous function) — main.ts:7
Eval Code — main.ts:7
eval
(anonymous function) — app.js:15
__webpack_require__ — polyfills.js:51
(anonymous function) — app.js:7
__webpack_require__ — polyfills.js:51
webpackJsonpCallback — polyfills.js:22
Global Code — app.js:1

2 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 17 Dec 2016, 01:21 PM
Disregard.  I have the buttons module in the declarations instead of the imports.  All is working now.  thank you
0
Kiril Nikolov
Telerik team
answered on 19 Dec 2016, 08:37 AM
Hi,

Great!

In case you have any other questions - please let us know.

Regards,
Kiril Nikolov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or