1
votes

My Dart-App works fine in Dartium, but when I compile to js there is this error:

Uncaught TypeError: Object #<HTMLDocument> has no method 'registerElement' 

My pubspec looks like this:

name: Capira_v8
description: Capira v8
dependencies:
  bootjack: any
  ctrl_alt_foo: any
  event_bus: any
  js: any
  json_object: any
  polymer: any
transformers:
- polymer:
    entry_points: web/capira_v8.html

I am using:
Dart Editor version 1.2.0.release (STABLE)
Dart SDK version 1.2.0
OS X 10.8.5

I saw this thread, but it did not help: Link

Thanks for any hints!

1

1 Answers

0
votes

can you try to add

@MirrorsUsed(symbols: const['registerElement'])
import 'dart:mirrors';

to your Dart file.