Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 08:51
    orhankutlu closed #7050
  • 08:51
    orhankutlu commented #7050
  • 08:06
    wuyonglv starred balderdashy/sails
  • 06:57
    yinlianhua starred balderdashy/sails
  • 02:43
    yifan18 starred balderdashy/waterline
  • 02:42
    wentaozone starred balderdashy/sails
  • Nov 26 17:54
    devmfouad commented #3124
  • Nov 26 14:40
    sailsbot commented #7076
  • Nov 26 14:40
    sailsbot unlabeled #7076
  • Nov 26 14:40
    Ungredda edited #7076
  • Nov 26 10:15
    sailsbot labeled #7076
  • Nov 26 10:15
    sailsbot commented #7076
  • Nov 26 10:15
    Ungredda opened #7076
  • Nov 26 10:08
  • Nov 26 06:04
    rachaelshaw closed #7075
  • Nov 26 06:03
    sailsbot commented #7075
  • Nov 26 06:03
    sailsbot unlabeled #7075
  • Nov 26 06:03
    rachaelshaw edited #7075
  • Nov 26 05:58
    rachaelshaw synchronize #7075
  • Nov 26 05:58

    rachaelshaw on documentation

    Fix adapter specification link (compare)

Mukul Sharma
@mukulsoftwap
how to implement sails.io with Native android
Marco Romano
@marcorom88_twitter
I try to install sails 1.0 but a I have a lot of errors... The beta i installed without errors some month ago, but 1. 0 stable with a lot of problems!
Marco Romano
@marcorom88_twitter
info: Starting app...

error: A hook (`userconfig`) failed to load!
error: 
error: As of Sails v1, `sails.config.globals._` must be either `false` or a locally-installed version of Lodash (typically `require('lodash')`).  For more info, see http://sailsjs.com/config/globals

error: Could not load Sails app.
error: 
error: Tips:
error:  • First, take a look at the error message above.
error:  • Make sure you've installed dependencies with `npm install`.
error:  • Check that this app was built for a compatible version of Sails.
error:  • Have a question or need help?  (http://sailsjs.com/support)
and if I change global config I have others errors:
info: Starting app...

debug: The `config.views.engine` config has been deprecated.
debug: In Sails 1.x, use `config.views.extension` to choose your view
debug: extension (defaults to ".ejs"), and use `config.views.getRenderFn`
debug: to configure your template engine or leave it undefined to use
debug: the built-in EJS template support.

debug: The `sails.config.cors` config has been deprecated.
debug: Please use `sails.config.security.cors` instead.
debug: (we'll use your `sails.config.cors` settings for now).

debug: The `sails.config.connections` setting is deprecated.  Please use `sails.config.datastores` instead.
debug: For more info, see http://sailsjs.com/documentation/upgrading/to-v-1-0/#?changes-to-database-configuration

 info: 
 info:                .-..-.
 info: 
 info:    Sails              <|    .-..-.
 info:    v1.0.0              |\
 info:                       /|.\
 info:                      / || \
 info:                    ,'  |'  \
 info:                 .-'.-==|/_--'
 info:                 `--'-------' 
 info:    __---___--___---___--___---___--___
 info:  ____---___--___---___--___---___--___-__
 info: 
 info: Server lifted in `/home/marrom/smash_node-1.0`
 info: To shut down Sails, press <CTRL> + C at any time.
 info: Read more at https://sailsjs.com/support.

debug: -------------------------------------------------------
debug: :: Thu Mar 29 2018 22:19:52 GMT+0200 (CEST)

debug: Environment : development
debug: Port        : 1337
debug: -------------------------------------------------------
error: ** Grunt :: An error occurred. **
error: 
------------------------------------------------------------------------
Aborted due to warnings.
Loading "Gruntfile.js" tasks...ERROR
>> Error: Attempted to `require('/home/marrom/smash_node-1.0/tasks/config/watch.js')`, but an error occurred:
>> --
>> /home/marrom/smash_node-1.0/tasks/config/watch.js:26
>>       tasks: ['syncAssets' , &#39;linkAssets&#39; ]
>>                              ^
>> 
>> SyntaxError: Unexpected token &
>>   at createScript (vm.js:80:10)
>>   at Object.runInThisContext (vm.js:139:10)
>>   at Module._compile (module.js:616:28)
>>   at Object.Module._extensions..js (module.js:663:10)
>>   at Module.load (/home/marrom/smash_node-1.0/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
>>   at tryModuleLoad (module.js:505:12)
>>   at Function.Module._load (module.js:497:3)
>>   at Module.require (module.js:596:17)
>>   at require (internal/module.js:11:18)
>>   at /home/marrom/smash_node-1.0/node_modules/include-all/lib/help-include-all-sync.js:293:33
>>   at Array.forEach (<anonymous>:null:null)
>>   at _recursivelyIncludeAll (/home/marrom/smash_node-1.0/node_modules/include-all/lib/help-include-all-sync.js:178:11)
>>   at includeAll (/home/marrom/smash_node-1.0/node_modules/include-all/lib/help-include-all-sync.js:317:5)
>>   at includeAllSync (/home/marrom/smash_node-1.0/node_modules/include-all/index.js:27:10)
>>   at loadTasks (/home/marrom/smash_node-1.0/Gruntfile.js:46:12)
>>   at Object.module.exports (/home/marrom/smash_node-1.0/Gruntfile.js:68:28)
>>   at loadTask (/home/marrom/smash_node-1.0/node_modules/grunt/lib/grunt/task.js:318:10)
>>   at Task.task.init (/home/marrom/smash_node-1.0/node_modules/grunt/lib/grunt/task.js:437:5)
>>   at Object.grunt.tasks (/home/marrom/smash_node-1.0/node_modules/grunt/lib/grunt.js:111:8)
>>   at Object.module.exports [as cli] (/home/marrom/smash_node-1.0/node_modules/grunt/lib/grunt/cli.js:27:9)
>>   at Object.<anonymous> (/home/marrom/smash_node-1.0/node_modules/sails-hook-grunt/node_modules/grunt-cli/bin/grunt:44:20)
>>   at Module._compile (module.js:652:30)
>>   at Object.Module._extensions..js (module.js:663:10)
>>   at Module.load (module.js:565:32)
>>   at tryModuleLoad (module.js:505:12)
>>   at Function.Module._load (module.js:497:3)
>>   at Module.require (module.js:596:17)
>>   at require (internal/module.js:11:18)
>>   at Object.<anonymous> (/home/marrom/smash_node-1.0/node_modules/sails-hook-grunt/lib/grunt-wrapper.js:10:1)
>>   at Module._compile (module.js:652:30)
>
Marco Romano
@marcorom88_twitter
and if I choice installed web app do not installed any files and seems to 0.12 and not 1.0, all seems to be strange... I try 1.0 beta and works, and 1.0 stable do not work and seems different, I don't understand
Abrar Ahmed
@abrarahmedme
How can I use await functions inside for functions inside the model.
This is an example function inside a model
MyFunctionName: async function (options, cb) { await User.update({name: 'Mike'}) .set({ last_name: 'Williams' }) }
Tim Skaggs
@tskaggs
@marcorom88_twitter Did you try npm install -g sails@1.0.0?
Also I'm running on Node v9.10.0
Abrar Ahmed
@abrarahmedme
Suddenly it works now
Leo Montes
@leonardomontes
... just spent 1 hour trying to get a simple POST to work on v1 ... forfeit, going back to 0.12
Thomas Lepérou
@tleperou
@mikermcneil & all the team, congratulation! What a great news!
Mike McNeil
@mikermcneil
@leonardomontes too bad... if you want blueprints, generate your app as "Empty", or re-enable blueprints in your config. The "Web App" template disables them by default.
@marcorom88_twitter check out the upgrade tool if you haven't previously
Not sure why you're getting the &#39 -- I'm not able to reproduce that. Are you seeing it in a brand new project?
@jaydev943_twitter if you use await, you should completely eliminate this problem (unless -- much more unlikely -- your use case demands lots of streaming APIs, and the app code does not handle "error" events -- but in that case, def. check out sails-hook-uploads and the ration example app)
Mike McNeil
@mikermcneil
@entvikas re "express database modules" -- the things listed on that page are just NPM packages, unrelated to express, and maintained by unassociated open source contributors, for the most part (with the exception, at least, of mysql, which Doug maintains. Waterline's MySQL integration uses it as well.) Anyway, you can require those packages from any Node.js project, it has nothing to do with Express
btw @/all - just added some new integrations to gitter: the Sails roadmap (Trello) and the sails-hook-organics, sails-hook-uploads, parasails, and ration repos
Good night everyone - and thanks for the continued support!
Mukul Sharma
@mukulsoftwap
please give some suggestion how to use sails.io with nativ android ???
nobody give my question's answer please help me, if it is not possible tell me i will use express instead of sails.js
Mukul Sharma
@mukulsoftwap
@mikermcneil can you please suggest me how to use sails.io with nativ android ???, or we can use socket.io directy in sails
Marco Romano
@marcorom88_twitter
@tskaggs do not works how you suggest. Always errors and do not install files of 1.0 but of 0.12...
If I resolve errors start but first page is the same of 0.12, and if I choice we app I don't have files of example...
Marco Romano
@marcorom88_twitter
I'm come back because it is impossible installing correctly version 1.0 of sails! Beta I installed correctly 1 month ago, and stable doesn't install correctly...
red-duck
@red-duck
v1.0 is one hell of a show stopper. after years of development, cannot understand why we still have no custom validation messages in models. it's in pretty much all other server side frameworks.
Another thing I noticed was that if you have a unique validation rule on one attribute and a required rule on another, the unique validation never gets checked/thrown, so you end up getting a false positive on some fields.
dan-astiak
@dan-astiak
If your api or config folders and subfolders contain any non-source files, they’ll need to be moved. The exception is for Markdown (.md) and text (.txt) files, which will continue to be ignored. Sails will attempt to read all other files in those folders as code, allowing for more flexibility in choosing a Javascript dialect (see the notes about CoffeeScript and TypeScript above).
If your api or config folders and subfolders contain any non-source files, they’ll need to be moved. The exception is for Markdown (.md) and text (.txt) files, which will continue to be ignored. Sails will attempt to read all other files in those folders as code, allowing for more flexibility in choosing a Javascript dialect (see the notes about CoffeeScript and TypeScript above).
@mikermcneil Why ? , this just broke my app. I have typescript files that compile to js, and .map.js files why sails need to include non javascript files ? this just makes using sails one impossible and I don't see any benefits of including everything !?
dan-astiak
@dan-astiak
This change doing the opposite of what it says it doesn't make it more flexible it just makes it much harder to use typescript, you assume we use ts-node, but i rather not do that, with sails 0.12 it was simple just compile typescript to js in same folder or and ignore js files in git, now it's either use ts-node or a more complicated setup in typescript compilation.
dan-astiak
@dan-astiak
sigh, tough upgrade lol. new problem : Error: Trying to create an association on a model that doesn't have a Primary Key. I do have this in my model.js though
,
image.png
Marco Romano
@marcorom88_twitter
How can check if session is valid on view? For example: I found this part of code: <%=req.session.authenticated%>, but how can show a link if session is valid on a view?
Osmel Guarepo
@osmelg
Join our Sails Js chat on WhatsApp https://chat.whatsapp.com/AZvYC6uuXbsE716Um97yEw
ivanpetrus
@ivanpetrus
hey all, not sure if it is proper channel, but i have problem, upload file does not work, no error and no files, can anyone help me ?
Juan José González
@jjgonver_twitter
@dan-astiak the comma at the end of the 'id' line is leftover.
dan-astiak
@dan-astiak
@jjgonver_twitter That's a problem in json but doesn't matter in javascript, it is sails generated code anyways
Mike McNeil
@mikermcneil
@swshyamash @brookesb91 re deprecation warning: I haven't been able to reproduce that one-- it's weird-- but I've def. seen it on other folks computers.... I made https://trello.com/c/XYdhhvRc to track this. Looks like it's coming from i18n-2

can you please suggest me how to use sails.io with nativ android ???, or we can use socket.io directy in sails

@mukulsoftwap you can talk to Sails from your android app using socket.io directly, but you'll need to look at the source code of sails.io.js (the browser socket client) so you can emulate it how it's talking to the server. It's worth a google, I remember seeing samples of folks doing this before w/ android -- and the interface between socket client and the server is pretty stable, hasn't had any breaking changes I'm aware of since Sails 0.11, other than upgrading the socket.io-client version to match the version on the server

Mike McNeil
@mikermcneil

hey all, not sure if it is proper channel, but i have problem, upload file does not work, no error and no files, can anyone help me ?

@ivanpetrus that usually means the request didn't go off correctly, in my experience anyway. If you're looking for a req/res kind of thing, check out sails101 for a dated (but still correct) example. If you're on Sails 1.0 and can take advantage of actions2, check out the source code for the Ration example: https://ration.io

Osmel Guarepo
@osmelg
Hello my friends, is there any repo or guide to use sails Js with webrtc? Thank you
Marco Romano
@marcorom88_twitter
If I made a login page with session, how can show username logged on navbar layout?
DevilK
@DevKaranMehta
how to connect sailsjs 1.0 with mongodb (robomongo)
?
i have just install empty app