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: demo is not a function #10

Open
hemanth opened this issue Oct 20, 2016 · 6 comments
Open

TypeError: demo is not a function #10

hemanth opened this issue Oct 20, 2016 · 6 comments

Comments

@hemanth
Copy link

hemanth commented Oct 20, 2016

$ demokit 
TypeError: demo is not a function
    at EventEmitter.<anonymous> (/Users/hemanth/.yarn-cache/.global/node_modules/demokit/electron/demokit-run.js:66:19)
    at next (<anonymous>)
    at step (/Users/hemanth/.yarn-cache/.global/node_modules/demokit/electron/demokit-run.js:5:191)
    at /Users/hemanth/.yarn-cache/.global/node_modules/demokit/electron/demokit-run.js:5:437
    at EventEmitter.<anonymous> (/Users/hemanth/.yarn-cache/.global/node_modules/demokit/electron/demokit-run.js:5:99)
    at EventEmitter.on (/Users/hemanth/.yarn-cache/.global/node_modules/demokit/electron/demokit-run.js:33:5)
    at emitOne (events.js:96:13)
    at EventEmitter.emit (events.js:188:7)
    at WebContents.<anonymous> (/Users/hemanth/.yarn-cache/.global/node_modules/demokit/electron/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/api/web-contents.js:210:13)
    at emitTwo (events.js:106:13)
    at WebContents.emit (events.js:191:7)

It's failing at this line.

On v6.9.1:

> require('/Users/hemanth/.yarn-cache/.global/node_modules/demokit/electron/demokit-run.js')
/Users/hemanth/.yarn-cache/.global/node_modules/demokit/electron/demokit-run.js:33
    on("ready", async function(event)
                ^^^^^
SyntaxError: missing ) after argument list

Yet to try with harmony flags.

@tolmasky
Copy link
Owner

Demokit automatically runs it through babel, there might be some issue from doing it through yarn (haven't tried installing it through yarn yet). Also, the path to the demokit script needs to be passed (I think calling it without that won't work).

@hemanth
Copy link
Author

hemanth commented Oct 20, 2016

demokit new meow
cd meow
demokit 

Same with ^

@tolmasky
Copy link
Owner

Right I'm saying you have to pass the path in. If you're in meow you would do demokit index.js.

@hemanth
Copy link
Author

hemanth commented Oct 20, 2016

demokit . works fine 👍

@tolmasky
Copy link
Owner

Cool I'll make it so passing in nothing uses the current directory

@hemanth
Copy link
Author

hemanth commented Oct 20, 2016

It's on me!

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