1

Compiling Dart app to js these two errors arise:

Nº1:

InvalidStateError: Failed to call 'register' on 'Document' for type 'polymer-element': a type with that name is already registered.

Nº2:

Breaking on exception: TypeError: Object #<qE> has no method 'vL'

The object qE is created by dart2js. How to find the solution? There are appropriate tools to find the solution? Thanks for advance !

marcelo
  • 69
  • 6

1 Answers1

2

I heard N1 occurs when Angular and Polymer is used in the same app. This is a known bug.

related open issues:
- duplicate polymer-element registration should not break the app
- Get error "Uncaught InvalidStateError: Failed to call 'register' on 'Document' for type 'polymer-element'

For the N2 use pub build --mode=debug so you get unmangled names and then use one of the available strategies to fix the problem (use of MirrorsUsed, @observable, @reflectable)

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567