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: Object [object Function] has no method 'apply'
when running node-theseus on small example
#16
Comments
|
I've tried with node-theseus from Git: same problem. |
Ahh, sorry about that! I have it on my to-do list to release a new version of Theseus, but I'm behind. I have to synchronize node-theseus releases with Theseus releases because Theseus asks you to ... but what are these "development" and "stable" version numbers you mention? Is there a way of flagging a node-theseus release as "unstable, don't install this by default"? |
Thanks for your quick reply! :) There are some niceties in npm which can make your work much easier:
Hope this helps :) |
You can also consider adding pinned versions of your dependencies as submodules in the main Git repository: see This will make it much easier for people to clone your repository (and its submodules!) and have a consistent working set to hack on. Of course, when publishing, you should still make sure that particular versions of your module go together with their dependencies as published on npmjs.org. This probably means you will have to work with separate 'release version' branches for each version you publish. |
Got it, lots of options. :) Well I have some reading to do then. In the meantime, I'm going to push new versions of everything. Probably not today, but in the next few days I hope. If this is urgent for you, what I do locally is check out fondue right in node-theseus's Hope this helps. Thanks for all the pointers! |
Good luck :)
Isn't npm awesome? :) |
There's a much easier way :)
That's it. But please do keep those version numbers updated :-) |
Finally published the version with the fix. (I'm really sorry it took me so long.) |
Thanks :-) |
After installing Theseus and node-theseus, I tried running it on the following small sraping example using cheerio.
example.js:
The example runs just fine with the Node.js extension for Brackets, but running it with node-theseus I get the following error:
Brackets shows (0 calls) in the sidebar for line 7
Thinking it might have to do with the anonymous function which outputs the scrape results, I turned it into a named function.
example-test.js:
which now points the error and (0 calls) at the named function 'output':
Using Theseus 0.4.8 installed from within Brackets, node-theseus@0.2.2 installed using npm install -g, cheerio@0.13.1 installed locally.
The text was updated successfully, but these errors were encountered: