Cannot find module 'meteor/service-configuration'


#1

i have a problem here and tried every thing to fix it but still dont work:
this is my main.ts :

import { Meteor } from ‘meteor/meteor’;
import { ServiceConfiguration } from ‘meteor/service-configuration’;

Meteor.startup(() => {
ServiceConfiguration.configurations.upsert(
{ service: ‘facebook’ },
{
$set: {
appId: ‘xxxx’,
loginStyle: ‘redirect’,
secret: ‘xxxxx’,
},
}
);
});
and this is the bug :
cannot find module ‘meteor/service-configuration’
can you answer me plz ??

and this is my packages file:

Meteor packages used by this project, one per line.

Check this file (and the other files in this directory) into your repository.

‘meteor add’ and ‘meteor remove’ will edit this file for you,

but you can also edit it by hand.

meteor-base@1.1.0 # Packages every Meteor app needs to have
mobile-experience@1.0.4 # Packages for a great mobile UX
mongo@1.1.19 # The database Meteor supports right now
reactive-var@1.0.11 # Reactive variable for tracker
tracker@1.1.3 # Meteor’s client-side reactive programming library

standard-minifier-css@1.3.4 # CSS minifier run for production mode
standard-minifier-js@2.1.1 # JS minifier run for production mode
es5-shim@4.6.15 # ECMAScript 5 compatibility for older browsers
shell-server@0.2.4 # Server-side component of the meteor shell command
vue-templates
ts-decorators
accounts-base
http
accounts-facebook
service-configuration


#2

That needs to be done on the server. It won’t work on the client.

Also, I hope those aren’t your actual credentials you’ve just shared with the world!


#3

i didn’t understand what i have to do
it’s an opensource app i had download from github and i needed it so much