Skip to content
New issue

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

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

Already on GitHub? # to your account

TypeError: undefined is not a function #343

Closed
Vistritium opened this issue Jul 13, 2016 · 6 comments · Fixed by #347
Closed

TypeError: undefined is not a function #343

Vistritium opened this issue Jul 13, 2016 · 6 comments · Fixed by #347

Comments

@Vistritium
Copy link

when I try to build app:
nwbuild .
or run
nwbuild -r .
I get
[TypeError: undefined is not a function]
When I run in non-app folder it just says that it couldn't find package.json
I tried it on very simple app with just package.json and index.html, also tried it on another example app.
Is it possible to generate more logs so I could find more information about what is happening?
I use Windows 10

@carlgordon
Copy link

I'm getting the same error

@sn907635
Copy link

sn907635 commented Jul 20, 2016

I'm getting the same error to, but I fixed the bug temporarily.
in line 161 @ version.js
error code:
var version = versions.find(function(version){...});
fixed code:
var version = _.find(versions,function(version){...});

I use Mac:)

@adam-lynch
Copy link
Contributor

Thanks for reporting. What's your Node version? nw-builder requires version 4 or newer.

@adam-lynch
Copy link
Contributor

adam-lynch commented Jul 31, 2016

Ignore the fact this was closed above. I don't think that fixes your problem. I think it's related to an old Node version. But try version 2.2.6 anyway and if it does fix your problem, I'll close this.

@adam-lynch
Copy link
Contributor

Is this still a problem? We're now on 3.1.0 by the way.

@CaoMengLong
Copy link

if your node version is v0.12.xxxx , you can use
npm install node-webkit-builder -g
and build it.

nw-builder mast less than V4.0 +

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

Successfully merging a pull request may close this issue.

5 participants