-
Notifications
You must be signed in to change notification settings - Fork 43
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
Failed to reload ORM hook #60
Comments
Same problem here. Any solution? Thanks! |
@nehalist @pekpon Could one of of you create a repo that demonstrates the problem? I think that'd be the easiest way to see what's going on. e.g.:
Thanks man! |
@sgress454 thanks for your reply! I finally make it work reinstalling sails-hook and sails-mongo Thanks! |
@sgress454 here you go; https://github.com/nehalist/sails-hook-autoreload-issue-60 Fresh install. Problem seems to have nothing to do with sails-permissions, but with sails-auth. After installing sails-auth autoreload fails with the error mentioned in the entry post. e/ Wrong mention, whoops... |
Thanks @pekpon. It's very possible that these two hooks are just incompatible, but I will take a look. |
I do not have sails-auth or sails-permissions installed and I saw the same error. I had the swagger plugin that depended on marlinspike. Once I removed that plugin, my problems went away. |
Problem still exists. |
I have this problem also. Looks like this plugin makes development database extremely unstable, sometimes some rows are just dropped, sometimes the entire |
Same problem |
Same here. |
I also got this error.
|
Sehr geehrte Damen und Herren, ich werde ab 07.09.2015 wieder im Büro sein, Bitte kontaktieren Sie in dringenden Fällen Herrn Dr. Stefan Landshamer ([email protected]). Mit freundlichen Grüßen, |
I had this problem when updating my orm hook connection name, after the model has already been setted up. |
I'm experiencing this same problem. |
create an autoreload.js file in you config folder with the following content: Make sure you set migrate to safe in models.js Fixed for me. |
I did both of those things, and it didn't work. |
Hi, i have same problem when try edit config/locales/; i have tryed with autoreload.js and with watch.js but i receive always same error:
Thanks. |
The same issue here. Sails lifting up properly, but reload not working |
Ditto. Same issue. |
same issue |
Hi all, sorry for letting this one go for so long. While I see that this issue is affecting a number of people, just posting "same issue" isn't really helpful since the only repros I've seen so far involve the installation of other plugins that just might not be compatible with sails-hook-autoreload. I try to make this clear in the README, but this tool is intended for rapid-prototyping of early-stage apps, where you're still building up your model schema and basic functionality, and don't want to have to keep lowering and re-lifting Sails every time you tweak a model or controller. Once your app reaches the level of sophistication where you've got other third-party hooks involved (especially ones that operate on models), there's no guarantees, and you're probably going to need a solution like If someone can post a repo that shows this issue using just Sails and one of the core adapters (e.g. sails-postgresql or sails-mongo), and not involving another plugin, I'm happy to troubleshoot the issue! |
Same issue here |
I always get this error. |
same here
2017-03-08 12:51 GMT+00:00 Haider <[email protected]>:
… I always get this error.
error: A hook (orm) failed to load!
error: Error (E_UNKNOWN) :: Encountered an unexpected error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI80kh0y20yxqGg1hSM8oa0WYUks1l5Zks5rjqRjgaJpZM4IDpK->
.
|
Why sails team did you fix this issue ? |
@HaiderMalik12 @murbanowicz please read my comment above, and provide an actual repo that reproduces the problem without having an incompatible package installed so we can troubleshoot. I've provided a sample list of incompatible packages in the README. |
I had this issue and successfully fixed it. It was about hooks in .sailsrc if my memory is good. I've got a repo which implements sails/sails-hook-autoreload/sails-webpack with react/redux, hot reloading, rebundling and so on. The repo is called sails-webpack-react-2. The version 1 contains a similar error. |
I just ended up using nodemod. It's super easy and requires no setup. |
Well, shutdown and restarting the server takes up to 3/4 seconds in my case (webpack because of React). The hook is better. |
Failed to reinitialize ORM because the I am facing this issue. I haven't specified any type property for the association that I have created. |
Packages:
Sails version v0.12.3.
Guess it has something to do with sails permissions, sails auth or marlinspike (everything worked fine before they were installed).
The text was updated successfully, but these errors were encountered: