platform icon indicating copy to clipboard operation
platform copied to clipboard

Compiler errors when importing NgReduxModule - missing @NgModule annotation

Open herman-rogers opened this issue 5 years ago • 2 comments

This is a...

  • [ ] feature request
  • [x] bug report
  • [ ] usage question

What toolchain are you using for transpilation/bundling?

  • [ ] @angular/cli
  • [ ] Custom @ngTools/webpack
  • [ ] Raw ngc
  • [ ] SystemJS
  • [ ] Rollup
  • [x] Other - Bazel

Environment

NodeJS Version: 10.15.3 Typescript Version: 3.4.3 Angular Version: 8.0.3 @angular-redux/store version: 10.0.0 OS: Mac OS

Expected Behaviour:

Following the examples, doing:

@NgModule({
  imports: [NgReduxModule],
})

Should compile and work.

Actual Behaviour:

Getting compiler error

Stack Trace/Error Message:

Unexpected value 'NgReduxModule in /.../node_modules/@angular-redux/store/angular-redux-store.d.ts imported by the module StoreModule in /my/project. Please add @NgModule annotation

Additional Notes:

Likely issue is that this is an angular 8 problem.

herman-rogers avatar Aug 09 '19 17:08 herman-rogers

I have the same issue :(

Demven avatar Aug 30 '19 04:08 Demven

Anyone managed to get past this error when using Bazel?

GIGNorbertBorg avatar Oct 24 '19 06:10 GIGNorbertBorg