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

Error: Cannot use adminpanel hook without the controllers hook. #54

Open
mathewjoe opened this issue Jul 2, 2017 · 4 comments
Open

Comments

@mathewjoe
Copy link

I'm facing this error when running sails lift. I'm on sails version 1.0.0-36 and version 1.0.15 of the admin panel.

@mathewjoe
Copy link
Author

I'm not sure how to enable/install a controllers hook. I'm pretty new to sails, so any help would be appreciated.

@konstantinzolotarev
Copy link
Owner

@disrupticons Main issue with it that this module was done for sails.js v 0.11+
Seems that Sails.js changed a lot in it's code and now plugin not working.

I'll try to take a look into issue. Please could you send logs with errors and if you will be able to show application code it would be awesome

@mathewjoe
Copy link
Author

This is happening for a brand new project. These are the steps followed:

  • sails new test-sails-app
  • cd test-sails-app && npm install --save sails-hook-adminpanel
  • sails lift

This results in the following error:

info: Starting app...

error: A hook (`adminpanel`) failed to load!
error: 
error: Error: Cannot use `adminpanel` hook without the `controllers` hook.
    at /home/disrupticons/code/test-sails-app/node_modules/sails-hook-adminpanel/lib/initialize.js:41:27
    at arrayEach (/home/disrupticons/code/test-sails-app/node_modules/lodash/index.js:1289:13)
    at Function.<anonymous> (/home/disrupticons/code/test-sails-app/node_modules/lodash/index.js:3345:13)
    at Hook.initialize (/home/disrupticons/code/test-sails-app/node_modules/sails-hook-adminpanel/lib/initialize.js:39:15)
    at Hook.wrapper [as initialize] (/home/disrupticons/code/test-sails-app/node_modules/@sailshq/lodash/lib/index.js:3250:19)
    at /home/disrupticons/code/test-sails-app/node_modules/sails/lib/hooks/index.js:88:16
    at /home/disrupticons/code/test-sails-app/node_modules/async/dist/async.js:486:20
    at processQueue (/home/disrupticons/code/test-sails-app/node_modules/async/dist/async.js:1608:24)
    at taskComplete (/home/disrupticons/code/test-sails-app/node_modules/async/dist/async.js:1630:13)
    at /home/disrupticons/code/test-sails-app/node_modules/async/dist/async.js:1653:21
    at /home/disrupticons/code/test-sails-app/node_modules/async/dist/async.js:339:31
    at /home/disrupticons/code/test-sails-app/node_modules/async/dist/async.js:847:20
    at Hook.loadModules (/home/disrupticons/code/test-sails-app/node_modules/sails/lib/hooks/index.js:139:14)
    at Hook.wrapper [as loadModules] (/home/disrupticons/code/test-sails-app/node_modules/@sailshq/lodash/lib/index.js:3250:19)
    at modules (/home/disrupticons/code/test-sails-app/node_modules/sails/lib/hooks/index.js:79:25)
    at runTask (/home/disrupticons/code/test-sails-app/node_modules/async/dist/async.js:1662:17)

error: Could not load Sails app.
error: 
error: Tips:
error:  • First, take a look at the error message above.
error:  • Check that you're using the latest stable version of Sails.
error:  • Have a question or need help?  (http://sailsjs.com/support)

@fawzywassel
Copy link

anyone solve this

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

3 participants