polymer-dart / polymerize

Other
29 stars 3 forks source link

error with dart-sdk 1.25.0-dev.16.1 #12

Open rbellens opened 6 years ago

rbellens commented 6 years ago

With the latest develop version of the dart sdk (1.25.0-dev.16.1), I get the following error when opening my polymerize project in chrome.

require.js:143 Uncaught TypeError: Cannot assign to read only property '_check' of function 'class MyElement extends dart.global.Polymer.Element {}'
    at Object.dart.addTypeTests (dart_sdk.js:4149)
    at lib__elements__json_schema_docs.js:18
    at newCb (require.js:21)
    at Object.execCb (require.js:1696)
    at Module.check (require.js:878)
    at Module.<anonymous> (require.js:1139)
    at require.js:134
    at require.js:1189
    at each (require.js:59)
    at Module.emit (require.js:1188)

Don't know if this is a bug in the new dart sdk or it is an incompatibility with an internal change in the dartdevc that will persist. I guess it is a name conflict with https://github.com/polymer-dart/polymerize/blob/21c8c9772b899fc81d79aa86dbd4867f1c40f653/lib/src/polymerize_require/require.js#L48

Previous version of the dart sdk, e.g. 1.25.0-dev.11.0, worked fine.