dart-lang / dart-lang/webdev

Unhandled error detected in the injected client.js script

Open
#763 6 comments 0 reactions 0 assignees View on GitHub
package:dwds type-bug
Dominant language
Dart
Stars
224
Forks
94
Avg merge
7h 14m
Merged PRs (30d)
2

Description

I have received the following error message when attempting to load a development page served by angular dart (using webdev serve). I have tried running 'pub global activate webdev' which activated webdev 2.5.3 (from 2.5.2), but still receive exactly the same issue.

Any help is appreciated. Thank you!

Error message from javascript console (Chrome Version 77.0.3865.90):

Unhandled error detected in the injected client.js script.

You can disable this script in webdev by passing --no-injected-client if it
is preventing your app from loading, but note that this will also prevent
all debugging and hot reload/restart functionality from working.

The original error is below, please file an issue at
https://github.com/dart-lang/webdev/issues/new and attach this output:

NoSuchMethodError: method not found: 'call$0' on null
TypeError: Cannot read property 'call$0' of undefined
at http://localhost:8080/dwds/src/injected/client.js:26365:35
at _wrapJsFunctionForAsync_closure.$protected (http://localhost:8080/dwds/src/injected/client.js:3111:15)
at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:8080/dwds/src/injected/client.js:11691:12)
at Object._asyncStartSync (http://localhost:8080/dwds/src/injected/client.js:3076:20)
at main__closure1.$call$body$main__closure (http://localhost:8080/dwds/src/injected/client.js:26377:16)
at main__closure1.call$1 (http://localhost:8080/dwds/src/injected/client.js:26303:19)
at StaticClosure._rootRunUnary [as call$2$5] (http://localhost:8080/dwds/src/injected/client.js:3400:16)
at _CustomZone.runUnary$2$2 (http://localhost:8080/dwds/src/injected/client.js:13123:182)
at _CustomZone.runUnaryGuarded$1$2 (http://localhost:8080/dwds/src/injected/client.js:13051:14)
at _ControllerSubscription._sendData$1 (http://localhost:8080/dwds/src/injected/client.js:12534:19)
at _DelayedData.perform$1 (http://localhost:8080/dwds/src/injected/client.js:12741:85)
at _StreamImplEvents.handleNext$1 (http://localhost:8080/dwds/src/injected/client.js:12815:14)
at _PendingEvents_schedule_closure.call$0 (http://localhost:8080/dwds/src/injected/client.js:12787:10)
at Object._microtaskLoop (http://localhost:8080/dwds/src/injected/client.js:3261:21)
at StaticClosure._startMicrotaskLoop (http://localhost:8080/dwds/src/injected/client.js:3267:11)
at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (http://localhost:8080/dwds/src/injected/client.js:11582:9)
at invokeClosure (http://localhost:8080/dwds/src/injected/client.js:1206:26)
at MutationObserver. (http://localhost:8080/dwds/src/injected/client.js:1225:18)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the error with webdev serve in Chrome and inspect the injected client.js stack trace, especially around the reported failure at line 26365. Compare behavior with and without --no-injected-client; done means the development page loads without the unhandled error while debugging and hot reload/restart remain available.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
cli, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.