GithubHelp home page GithubHelp logo

fredmaiaarantes / simpletasks Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 24.0 713 KB

Simple Tasks with Meteor 3.0 + Chakra UI + RHF + MongoDB

Home Page: https://simpletasks.meteorapp.com

HTML 3.27% JavaScript 96.73%
javascript meteorjs mongodb reactjs

simpletasks's Issues

When I add thirdpart login in this project, something went wrong

When I add thirdpart login in this project, (github or what), I added service-configuration,accounts-github module and try the code
eg.
ServiceConfiguration.configurations.upsert(
{ service: 'github' },
{
$set: {
loginStyle: 'popup',
clientId: 'balabala',
secret: 'balabala',
},
}
);

the errors happened
error on boot.js Error: update + is not available on the server. Please use updateAsync() instead.
I20231218-10:57:40.518(8)? at Object.ret. [as update] (packages/mongo/remote_collection_driver.js:52:15)
I20231218-10:57:40.518(8)? at Collection.update (packages/mongo/collection.js:961:31)
I20231218-10:57:40.518(8)? at Collection.upsert (packages/mongo/collection.js:1066:17)
I20231218-10:57:40.518(8)? at packages/service-configuration/service_configuration_server.js:38:41
I20231218-10:57:40.518(8)? at Array.forEach ()
I20231218-10:57:40.518(8)? at packages/service-configuration/service_configuration_server.js:37:25
I20231218-10:57:40.518(8)? at Function.time (/Users/float/Code/joi-ai/great-prompt/.meteor/local/build/programs/server/profile.js:277:30)
I20231218-10:57:40.518(8)? at /Users/float/Code/joi-ai/great-prompt/.meteor/local/build/programs/server/boot.js:389:21
I20231218-10:57:40.518(8)? at processTicksAndRejections (node:internal/process/task_queues:95:5)
I20231218-10:57:40.518(8)? at /Users/float/Code/joi-ai/great-prompt/.meteor/local/build/programs/server/boot.js:438:9
I20231218-10:57:40.518(8)? at startServerProcess (/Users/float/Code/joi-ai/great-prompt/.meteor/local/build/programs/server/boot.js:435:5)
I20231218-10:57:40.518(8)? Error: update + is not available on the server. Please use updateAsync() instead.
I20231218-10:57:40.518(8)? at Object.ret. [as update] (packages/mongo/remote_collection_driver.js:52:15)
I20231218-10:57:40.519(8)? at Collection.update (packages/mongo/collection.js:961:31)
I20231218-10:57:40.519(8)? at Collection.upsert (packages/mongo/collection.js:1066:17)
I20231218-10:57:40.519(8)? at packages/service-configuration/service_configuration_server.js:38:41
I20231218-10:57:40.519(8)? at Array.forEach ()
I20231218-10:57:40.519(8)? at packages/service-configuration/service_configuration_server.js:37:25
I20231218-10:57:40.519(8)? at Function.time (/Users/float/Code/joi-ai/great-prompt/.meteor/local/build/programs/server/profile.js:277:30)
I20231218-10:57:40.519(8)? at /Users/float/Code/joi-ai/great-prompt/.meteor/local/build/programs/server/boot.js:389:21
I20231218-10:57:40.519(8)? at processTicksAndRejections (node:internal/process/task_queues:95:5)
I20231218-10:57:40.519(8)? at /Users/float/Code/joi-ai/great-prompt/.meteor/local/build/programs/server/boot.js:438:9
I20231218-10:57:40.519(8)? at startServerProcess (/Users/float/Code/joi-ai/great-prompt/.meteor/local/build/programs/server/boot.js:435:5)
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

when I change ServiceConfiguration.configurations.upsert to ServiceConfiguration.configurations.upsertAsync, the error disapeared, but the code doesn't work well.

Then I realized th Meteor 2.7+ should use Meteor settings by setting your services under Meteor.settings.packages.service-configuration. eg.
{
"packages": {
"service-configuration": {
"github": {
"loginStyle": "popup",
"clientId": "balabala",
"secret": "balabala"
}
}
}
}

when I change to that, the first error show again

what should I do when I need to add third part login in this project(meteor 3) ?

I am a newbee, plz show me the code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.