Nw.js: Uncaught ReferenceError: DevToolsAPI is not defined - v0.13.0-beta4

Created on 26 Jan 2016  路  3Comments  路  Source: nwjs/nw.js

I get a

[10718:1299:0126/102814:ERROR:CONSOLE(1)] "Uncaught ReferenceError: DevToolsAPI is not defined", source:

when trying to run

var gui = require('nw.gui');
var win = gui.Window.get();
win.showDevTools();

against release v0.13.0-beta4 on MacOS X 10.10.5 Yosemite - http://nwjs.io/blog/v0.13.0-beta4/

Most helpful comment

@loretoparisi You have to use the SDK build, to have DEVTools.
http://docs.nwjs.io/en/v0.13.0-beta4/For%20Users/Advanced/Build%20Flavors/

All 3 comments

@loretoparisi You have to use the SDK build, to have DEVTools.
http://docs.nwjs.io/en/v0.13.0-beta4/For%20Users/Advanced/Build%20Flavors/

@bjoernneumann right it worked, even if I get a suspect issue:

2016-01-26 15:15:44.075 nwjs[17108:803045] NSWindow warning: adding an unknown subview: <TabStripBackgroundView: 0x7fe1b32d8100>
2016-01-26 15:15:44.076 nwjs[17108:803045] Call stack:
(
    0   AppKit                              0x00007fff87a3854d -[NSThemeFrame addSubview:] + 107
    1   AppKit                              0x00007fff87a3803f -[NSView addSubview:positioned:relativeTo:] + 208
    2   NWJS Framework                      0x0000000103a85edb _ZN2v88UnlockerD1Ev + 21017371
    3   NWJS Framework                      0x00000001039dacbc _ZN2v88UnlockerD1Ev + 20316412
    4   NWJS Framework                      0x00000001039e50f2 _ZN2v88UnlockerD1Ev + 20358450
    5   NWJS Framework                      0x0000000103aea905 _ZN2v88UnlockerD1Ev + 21429573
    6   NWJS Framework                      0x0000000100e702f2 ChromeMain + 4153026
    7   NWJS Framework                      0x0000000100e6fbc0 ChromeMain + 4151184
    8   NWJS Framework                      0x0000000100e6f4c4 ChromeMain + 4149396
    9   NWJS Framework                      0x0000000100e6f2d3 ChromeMain + 4148899
    10  NWJS Framework                      0x00000001049f0e72 _ZN2v88UnlockerD1Ev + 37184178
    11  NWJS Framework                      0x00000001044c4941 _ZN2v88UnlockerD1Ev + 31759745
    12  NWJS Framework                      0x00000001044c69a9 _ZN2v88UnlockerD1Ev + 31768041
    13  NWJS Framework                      0x00000001044c6bcf _ZN2v88UnlockerD1Ev + 31768591
    14  NWJS Framework                      0x00000001044dff02 _ZN2v88UnlockerD1Ev + 31871810
    15  NWJS Framework                      0x00000001046cb04f _ZN2v88UnlockerD1Ev + 33883279
    16  NWJS Framework                      0x0000000103ff0db4 _ZN2v88UnlockerD1Ev + 26698228
    17  NWJS Framework                      0x0000000103dd20cf _ZN2v88UnlockerD1Ev + 24474895
    18  NWJS Framework                      0x0000000103f13e19 _ZN2v88UnlockerD1Ev + 25793113
    19  NWJS Framework                      0x0000000101a28f18 ChromeMain + 16444136
    20  NWJS Framework                      0x0000000100f75aaa ChromeMain + 5224058
    21  NWJS Framework                      0x0000000100f98469 ChromeMain + 5365817
    22  NWJS Framework                      0x0000000100f989b6 ChromeMain + 5367174
    23  NWJS Framework                      0x0000000100f6ad41 ChromeMain + 5179665
    24  NWJS Framework                      0x0000000100f8ebba ChromeMain + 5326730
    25  NWJS Framework                      0x0000000100f6a744 ChromeMain + 5178132
    26  CoreFoundation                      0x00007fff8c7d6a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    27  CoreFoundation                      0x00007fff8c7c8b8d __CFRunLoopDoSources0 + 269
    28  CoreFoundation                      0x00007fff8c7c81bf __CFRunLoopRun + 927
    29  CoreFoundation                      0x00007fff8c7c7bd8 CFRunLoopRunSpecific + 296
    30  HIToolbox                           0x00007fff8f09656f RunCurrentEventLoopInMode + 235
    31  HIToolbox                           0x00007fff8f0962ea ReceiveNextEventCommon + 431
    32  HIToolbox                           0x00007fff8f09612b _BlockUntilNextEventMatchingListInModeWithFilter + 71
    33  AppKit                              0x00007fff87a878ab _DPSNextEvent + 978
    34  AppKit                              0x00007fff87a86e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
    35  AppKit                              0x00007fff87a7caf3 -[NSApplication run] + 594
    36  NWJS Framework                      0x0000000100f6b491 ChromeMain + 5181537
    37  NWJS Framework                      0x0000000100f6ab94 ChromeMain + 5179236
    38  NWJS Framework                      0x0000000100faae73 ChromeMain + 5442115
    39  NWJS Framework                      0x0000000100b0d405 ChromeMain + 602069
    40  NWJS Framework                      0x0000000103d214a7 _ZN2v88UnlockerD1Ev + 23750887
    41  NWJS Framework                      0x0000000103d23d22 _ZN2v88UnlockerD1Ev + 23761250
    42  NWJS Framework                      0x0000000103d1cf4d _ZN2v88UnlockerD1Ev + 23733133
    43  NWJS Framework                      0x0000000100f26208 ChromeMain + 4898264
    44  NWJS Framework                      0x0000000100f256a6 ChromeMain + 4895350
    45  NWJS Framework                      0x0000000100a7a472 ChromeMain + 66
    46  nwjs                                0x0000000100a12d52 main + 530
    47  nwjs                                0x0000000100a12b34 nwjs + 2868
    48  ???                                 0x0000000000000002 0x0 + 2
)

but it is could be not related to this (not sure).

@lahdekorpi it's unrelated. so closing this one. thanks.

Was this page helpful?
0 / 5 - 0 ratings