Closed slav-pilus closed 7 years ago
I too am getting the same error.
@slavP I have a fix for this and I have created a pull request for this. Can you help me confirm if the pull request fixes your issue ? to confirm, you will have to remove this plugin from your project and then install the forked version in your project using this command :
npm install Cachy/ng2-device-detector
and then try to build your code to see if you still get the error or not. Share your results here in either case.
@sushruth The forked version does solve the issue for me
@slavP Thanks for verifying.
Pull request 7 seems to have resolved this issue
I'm getting
Unexpected value 'Ng2DeviceDetector in [...]/node_modules/ng2-device-detector/dist/index.d.ts' imported by the module 'AppModule in [...]/app/app.module.ts'. Please add a @NgModule annotation.
while compiling with aot compiler using:
./node_modules/.bin/ngc -p tsconfig-aot.json
everything works just fine with regular ts compiler. It this a bug or am I missing something?my component:
my app.module.ts