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

TypeError: devtools.attachDOMInspectorEventCallbacks is not a function #3758

Closed
erickkimura7 opened this issue Jul 18, 2018 · 1 comment
Closed
Labels

Comments

@erickkimura7
Copy link

erickkimura7 commented Jul 18, 2018

Please, provide the details below:

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo? yes

Tell us about the problem

Please, ensure your title is less than 63 characters long and starts with a capital
letter.

I get an error : TypeError: devtools.attachDOMInspectorEventCallbacks is not a function

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it) - 4.1.2
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project) - 4.1.0
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the
    package.json file of your project) - 4.1.3
  • Plugin(s): (look for the version number in the package.json file of your
    project)

Please tell us how to recreate the issue in as much detail as possible.

First I run "ng new --collection=@nativescript/schematics --name=my-mobile-app"

When I run 'npm run android' e get this error.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Successfully synced application org.nativescript.mymobileapp on device 520097d6eca65421.
Executing before-shouldPrepare hook from /Users/erickkimura/Documents/meusProjetos/treino/my-mobile-app/hooks/before-shouldPrepare/nativescript-dev-webpack.js
Skipping prepare.
ActivityManager: Start proc 8621:org.nativescript.mymobileapp/u0a307 for activity org.nativescript.mymobileapp/com.tns.NativeScriptActivity
System.err: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: 
System.err: 
System.err: Error calling module function 
System.err: 
System.err: Error calling module function 
System.err: 
System.err: TypeError: devtools.attachDOMInspectorEventCallbacks is not a function
System.err: File: "file:///data/data/org.nativescript.mymobileapp/files/app/vendor.js, line: 97419, column: 13
System.err: 
System.err: StackTrace: 
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.mymobileapp/files/app/vendor.js', line: 97419, column: 14
System.err: 	Frame: function:'../node_modules/tns-core-modules/ui/frame/frame.js', file:'file:///data/data/org.nativescript.mymobileapp/files/app/vendor.js', line: 98278, column: 30
System.err: 	Frame: function:'__webpack_require__', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 76, column: 30
System.err: 	Frame: function:'../node_modules/nativescript-angular/platform-providers.js', file:'file:///data/data/org.nativescript.mymobileapp/files/app/vendor.js', line: 55469, column: 15
System.err: 	Frame: function:'__webpack_require__', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 76, column: 30
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.mymobileapp/files/app/vendor.js', line: 55219, column: 28
System.err: 	Frame: function:'../node_modules/nativescript-angular/platform-common.js', file:'file:///data/data/org.nativescript.mymobileapp/files/app/vendor.js', line: 55460, column: 30
System.err: 	Frame: function:'__webpack_require__', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 76, column: 30
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.mymobileapp/files/app/vendor.js', line: 55535, column: 25
System.err: 	Frame: function:'../node_modules/nativescript-angular/platform.js', file:'file:///data/data/org.nativescript.mymobileapp/files/app/vendor.js', line: 55579, column: 30
System.err: 	Frame: function:'__webpack_require__', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 76, column: 30
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 250, column: 133
System.err: 	Frame: function:'./main.ts', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 270, column: 30
System.err: 	Frame: function:'__webpack_require__', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 76, column: 30
System.err: 	Frame: function:'checkDeferredModules', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 45, column: 23
System.err: 	Frame: function:'module.exports.../$$_lazy_route_resource lazy recursive.webpackEmptyAsyncContext.keys', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 134, column: 18
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.mymobileapp/files/app/bundle.js', line: 137, column: 10
System.err: 	Frame: function:'require', file:'', line: 1, column: 266
System.err: 	Frame: function:'', file:'file:///data/data/org.nativescript.mymobileapp/files/app/starter.js', line: 2, column: 1
System.err: 	Frame: function:'require', file:'', line: 1, column: 266


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

No branches or pull requests

2 participants