0

実行時エラーが発生しました:

TypeError: this.sourceExpression.connect は関数ではありません

問題は、stacktrace が有用なものを何も表示しないことです。バンドルされたコンポーネント (この場合は Leaflet の MarkerClusterGroup) の 1 つの最後の行を (ランダムに) 指しています。

キャッチされていない TypeError: this.sourceExpression.connect は、enqueueBindingConnect (MarkerClusterGroup.Refresh.js:110) の ChildInterpolationBinding.connect (MarkerClusterGroup.Refresh.js:110) の関数ではありません。 View.bind (MarkerClusterGroup.Refresh.js:110) で If._show (MarkerClusterGroup.Refresh.js:110) で If._update (MarkerClusterGroup.Refresh.js:110) で If.conditionChanged (MarkerClusterGroup.Refresh.js:110) ) BehaviorPropertyObserver.selfSubscriber (MarkerClusterGroup.Refresh.js:110) で BehaviorPropertyObserver.call (MarkerClusterGroup.Refresh.js:110) で BehaviorPropertyObserver.setValue (MarkerClusterGroup.Refresh.js:110) で If.descriptor.set [条件として] (MarkerClusterGroup.Refresh.js:110) オブジェクトで。setValue (MarkerClusterGroup.Refresh.js:110) で Binding.updateTarget (MarkerClusterGroup.Refresh.js:110) で Binding.call (MarkerClusterGroup.Refresh.js:110) で BehaviorPropertyObserver.callSubscribers (MarkerClusterGroup.Refresh.js:110) でBehaviorPropertyObserver.call (MarkerClusterGroup.Refresh.js:110)

4

1 に答える 1

1

問題の原因は、スタック トレースが指しているファイルに関連していませんでした。問題は、次のような Aurelia テンプレートの 1 つのバインディング式での構文エラー (二重ドット: dto..firstName ) でした。

<input value.bind="dto..firstName" />

テンプレートには、スタック トレースが指しているコード行 (または JS ライブラリでさえも) との関係や依存関係はありませんでした。

于 2018-05-09T14:53:24.637 に答える