Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.js:10109 Unhandled error detected in the injected client.js script. #2553

Open
insinfo opened this issue Dec 22, 2024 · 1 comment
Open

Comments

@insinfo
Copy link

insinfo commented Dec 22, 2024

PS C:\MyDartProjects\new_sali> webdev --version
3.7.0-wip
PS C:\MyDartProjects\new_sali> dart --version
Dart SDK version: 3.6.0 (stable) (Thu Dec 5 07:46:24 2024 -0800) on "windows_x64"
PS C:\MyDartProjects\new_sali> 
client.js:10109 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:

TypeError: null: type 'JSNull' is not a subtype of type 'String'

    at Object.wrapException (http://192.168.66.123:8080/dwds/src/injected/client.js:1249:43)
    at Object._asString (http://192.168.66.123:8080/dwds/src/injected/client.js:2823:15)
    at main__closure7.call$1 (http://192.168.66.123:8080/dwds/src/injected/client.js:26887:54)
    at _EventStreamSubscription_closure.call$1 (http://192.168.66.123:8080/dwds/src/injected/client.js:26250:26)
    at StaticClosure._rootRunUnary (http://192.168.66.123:8080/dwds/src/injected/client.js:4365:16)
    at _CustomZone.runUnary$2$2 (http://192.168.66.123:8080/dwds/src/injected/client.js:14412:39)
    at _CustomZone.runUnaryGuarded$1$2 (http://192.168.66.123:8080/dwds/src/injected/client.js:14359:14)
    at _CustomZone_bindUnaryCallbackGuarded_closure.call$1 (http://192.168.66.123:8080/dwds/src/injected/client.js:14546:25)
    at _callDartFunctionFast1 (http://192.168.66.123:8080/dwds/src/injected/client.js:7871:25)
    at http://192.168.66.123:8080/dwds/src/injected/client.js:7847:18

:8080/$dwdsSseHandler?sseClientId=InjectedClient-8665e965-a744-479a-a760-05062a75f24e:1 
        
        
       GET http://192.168.66.123:8080/$dwdsSseHandler?sseClientId=InjectedClient-8665e965-a744-479a-a760-05062a75f24e net::E

pubspec.yaml

name: new_sali_frontend
version: 4.0.0
publish_to: none

environment:
  sdk: ^3.2.1

dependencies:
  ngdart: 8.0.0-dev.4
  ngrouter: 4.0.0-dev.3
  ngforms: 5.0.0-dev.3   
  #ngdart:     
    #git:
      #ref: master
      #url: https://github.com/insinfo/angular_8.git
    # path:
    #   ../../angular_8
  
  http: any  
  js: any  
  chartjs2: any  
  #ngsecurity:
   #git:
      #ref: main
      #url: https://github.com/angulardart-community/ngsecurity.git 
      #url: https://github.com/insinfo/ngsecurity.git 
  new_sali_core:
    path: ../core
  dart_excel:
   git:
    url: https://github.com/insinfo/dart_excel.git
    ref: main    #branch name  
        

dev_dependencies:  
  build_runner: ^2.1.2
  build_test: ^2.1.3
  build_web_compilers: ^4.0.0
  lints: ^2.1.0
  test: ^1.24.0
  sass_builder: ^2.2.1
  
@insinfo
Copy link
Author

insinfo commented Dec 27, 2024

From what I saw, the error occurs right after clicking on a form item after the application is fully loaded.

image

Microsoft Edge Versão 131.0.2903.112
Google Chrome Versão 130.0.6723.117

Unhandled.error.detected.in.the.injected.client.js.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant