We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(node:18776) UnhandledPromiseRejectionWarning: TypeError: MySQL is not a constructor
I've got this error.
here is my code `const { MySQL } = require('parse-server-mysql-adapter');
const mysql = new MySQL(DB_URI);
const parseServerAPI = new ParseServer({ databaseURI: mysql.getAdapter(), cloud: path.resolve(__dirname, 'server/cloud/main.ts'), appId: APP_ID, masterKey: MASTER_KEY, serverURL: SERVER_URL, appName: APP_NAME, });`
The text was updated successfully, but these errors were encountered:
You should ignore the documentations, and remove the brackets
const MySQL = require('parse-server-mysql-adapter');
Sorry, something went wrong.
No branches or pull requests
(node:18776) UnhandledPromiseRejectionWarning: TypeError: MySQL is not a constructor
I've got this error.
here is my code
`const { MySQL } = require('parse-server-mysql-adapter');
const mysql = new MySQL(DB_URI);
const parseServerAPI = new ParseServer({
databaseURI: mysql.getAdapter(),
cloud: path.resolve(__dirname, 'server/cloud/main.ts'),
appId: APP_ID,
masterKey: MASTER_KEY,
serverURL: SERVER_URL,
appName: APP_NAME,
});`
The text was updated successfully, but these errors were encountered: