I need help with launch.js for VS Code because i am not able to figure out how to use my index.js to launch debugger. I tried options like below.
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/bin/parse-server",
"args": [
"parse-server-config.json"
],
"outFiles": [
"${workspaceFolder}/build/cloud/**/*.js"
]
}
]
this is parse-server-config.json
but get Error: ApiMailAdapter: API callback is not a function.
{
"appId": "myAppId",
"masterKey": "masterkey",
"appName": "app",
"cloud": "./cloud/main",
"databaseURI": "mongodb://192.168.1.2:27017/db",
"push": {
"ios": {
"pfx": "certs/ApplePush.p12",
"passphrase": "",
"topic": "com.a.b",
"production": "false"
}
},
"auth": {
"facebook": {
"appIds": "[xxxxxx]"
},
"apple": {
"clientId": "com.a.b"
}
},
"verifyUserEmails": "true",
"preventLoginWithUnverifiedEmail": "true",
"publicServerURL": "http://192.168.1.2:1337/parse",
"emailAdapter": {
"module": "parse-server-api-mail-adapter",
"options": {
"sender": "[email protected]",
"domain": "something.com",
"apiKey": "mykey-mykey-mykey-mykey-mykey-mykey",
"templates": {
"passwordResetEmail": {
"subjectPath": "public_html/password_reset_email_subject.txt",
"textPath": "public_html/password_reset_email.txt",
"htmlPath": "public_html/password_reset_email.html"
},
"verificationEmail": {
"subjectPath": "public_html/verification_email_subject.txt",
"textPath": "public_html/verification_email.txt",
"htmlPath": "public_html/verification_email.html"
},
"accountDelete": {
"subjectPath": "public_html/account_delete_subject.txt",
"textPath": "public_html/account_delete.txt",
"htmlPath": "public_html/account_delete.html"
},
"requestEmail": {
"subjectPath": "public_html/request_email_subject.txt",
"textPath": "public_html/request_email.txt",
"htmlPath": "public_html/request_email.html"
}
},
"apiCallback":"" **//how to specify this**
}
}
}
Also tried this
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/bin/parse-server ${workspaceFolder}/index.js",
"args": [
],
"outFiles": [
"${workspaceFolder}/build/cloud/**/*.js"
]
}
]
}
get Uncaught Error Error: Cannot find module /path/to/index.js