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

Devtools extension load throws error #5428

Closed
kailniris opened this issue Nov 3, 2016 · 2 comments
Closed

Devtools extension load throws error #5428

kailniris opened this issue Nov 3, 2016 · 2 comments
Assignees

Comments

@kailniris
Copy link

kailniris commented Nov 3, 2016

win 10 64 bit sdk build
NW.js v0.18.5

I run my project with a shortcut with a target like this:

C:\Dev\nwjs\nw.exe --load-extension="C:\Dev\vue-devtools" "C:\Dev\test"

After the app loads I get the following errror:

Uncaught TypeError: Cannot read property 'Window' of undefined
at get_nw (extensions::nw.Window:754:20)

The devtools says the problem is at this function:

function get_nw() {
  appWindowNatives.FixGamePadAPI();
  try_nw(window).nw.Window.get(); //error is thrown at this line
}

It was working with NW.js v0.18.4

If I run the project without the --load-extension the error is not thrown

@kailniris kailniris changed the title Devtools expension load throws error Devtools extension load throws error Nov 3, 2016
@rogerwang rogerwang self-assigned this Nov 3, 2016
@rogerwang
Copy link
Member

Could you please upload the app and the extension?

@kailniris
Copy link
Author

The app is as basic as possible.
The extension is the vue-devtools extension I downloaded it from the chrome app store.

vue_devtools_include_test.zip

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

No branches or pull requests

2 participants