fredmaiaarantes / simpletasks Goto Github PK
View Code? Open in Web Editor NEWSimple Tasks with Meteor 3.0 + Chakra UI + RHF + MongoDB
Home Page: https://simpletasks.meteorapp.com
Simple Tasks with Meteor 3.0 + Chakra UI + RHF + MongoDB
Home Page: https://simpletasks.meteorapp.com
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.