-
Notifications
You must be signed in to change notification settings - Fork 178
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
yo meanjs:crud-module <module-name> - create fails #258
Comments
Having the same issue |
+1, Any hot fix at least? |
Having the same issue running with yo meanjs --version = 1.8.5 |
Hi, I am not 100% sure about the issue since the post request URL is appending the module name with API request. Ex: if module name is 'note' Expected: actual: in file: modules/core/client/app/init.js
+ enabled: false, Try this may help. If not then it is a different issue. |
@nithin-ideas2it that worked,thanks a lot.! |
Seems to work, but I'm now getting not-found#! instead of api in the browser url. |
I am getting a similar error when generating crud modules: `[23:00:48] Starting 'mocha'...
|
These test failures have existed prior to the SERVER PATH issue in this thread. The following may be helpful: Method Save should be able to save without problems: produced a -expected 200 but got 422 Unprocessable Entity- error. I believe it is due to the done() callback and the New Module Promise conflict. http://staxmanade.com/2015/11/testing-asyncronous-code-with-mochajs-and-es7-async-await/ |
After generating am module the call to $resource.save() fails - the path to the api - http://localhost:3000/api/module-name/create/module-name POST fails with 404 for the obvious reason, the trailing /module-name
The workaround to this is to clone the articles.client.service.js code -
` angular.extend(Article.prototype, {
createOrUpdate: function () {
var article = this;
return createOrUpdate(article);
}
});
.
.
.
`
into your module.
Can someone confirm the module-name.client.controller.js :: vm.module-name reference to the service is being corrupted?
Thanks to the team who is maintaining the mean.js stack - I rely on it heavily.
The text was updated successfully, but these errors were encountered: