question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

this._super.apply

See original GitHub issue

I followed the instructions but get this error. Any idea what it could be?

$ npm start

> hospitalrun@0.9.11 start /Users/gregor/Projects/hospitalrun/frontend
> ./script/server

Checking CouchDB...Starting ember server
this._super.apply is not a function
TypeError: this._super.apply is not a function
    at Class.module.exports.init (/Users/gregor/Projects/hospitalrun/frontend/node_modules/ember-cli-htmlbars/ember-addon-main.js:12:17)
    at new Class (/Users/gregor/Projects/hospitalrun/frontend/node_modules/core-object/core-object.js:18:12)
    at /Users/gregor/Projects/hospitalrun/frontend/node_modules/ember-cli/lib/models/addons-factory.js:48:19
    at visit (/Users/gregor/Projects/hospitalrun/frontend/node_modules/ember-cli/lib/utilities/DAG.js:23:3)
    at DAG.topsort (/Users/gregor/Projects/hospitalrun/frontend/node_modules/ember-cli/lib/utilities/DAG.js:82:7)
    at AddonsFactory.initializeAddons (/Users/gregor/Projects/hospitalrun/frontend/node_modules/ember-cli/lib/models/addons-factory.js:44:9)
    at Class.Addon.initializeAddons (/Users/gregor/Projects/hospitalrun/frontend/node_modules/ember-cli/lib/models/addon.js:222:36)
    at setupRegistryForEachAddon (/Users/gregor/Projects/hospitalrun/frontend/node_modules/ember-cli-preprocess-registry/preprocessors.js:18:10)
    at Object.module.exports.setupRegistry (/Users/gregor/Projects/hospitalrun/frontend/node_modules/ember-cli-preprocess-registry/preprocessors.js:46:3)
    at Class.Addon (/Users/gregor/Projects/hospitalrun/frontend/node_modules/ember-cli/lib/models/addon.js:109:5)

npm ERR! Darwin 15.4.0
npm ERR! argv "/Users/gregor/.nvm/versions/node/v4.2.2/bin/node" "/Users/gregor/.nvm/versions/node/v4.2.2/bin/npm" "start"
npm ERR! node v4.2.2
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! hospitalrun@0.9.11 start: `./script/server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the hospitalrun@0.9.11 start script './script/server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the hospitalrun package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./script/server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs hospitalrun
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls hospitalrun
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/gregor/Projects/hospitalrun/frontend/npm-debug.log

Versios

MAC 10.11.4 node v4.2.2 npm 3.8.6

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gr2mcommented, May 20, 2016

confirmed, thanks John!

1reaction
jkleinsccommented, May 20, 2016

I’ll look into it when I get the chance

Read more comments on GitHub >

github_iconTop Results From Across the Web

super.apply(this, arguments) - ES Discuss
apply the constructor method (to initialize a new instance using apply). I want to be able to say: class Foo extends Bar {....
Read more >
super - JavaScript - MDN Web Docs - Mozilla
The super keyword is used to access properties on an object literal or class's [[Prototype]], or invoke a superclass's constructor.
Read more >
Difference between super() and this() in java - GeeksforGeeks
It can be used only inside constructor and nowhere else. super() is used to refer only parent class's(super class's) constructor. this() Keyword.
Read more >
difference between this._super() and this._super.apply() odoo js
In which case, we can use this._super() and this._super.apply(). what is the difference between include() and extend() odoo javascript?
Read more >
Supercharge Your Classes With Python super()
In this step-by-step tutorial, you will learn how to leverage single and multiple inheritance in your object-oriented application to supercharge your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found