You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the React tutorial under step 3, there is a mistake in the code snippet provided. Specifically, the export statement in line 9 exports database but in our step 7: Create ideas page, the import statement imports databases.
Current code:
import{Client,Databases,Account}from"appwrite";constclient=newClient();client.setEndpoint("https://cloud.appwrite.io/v1").setProject("<YOUR_PROJECT_ID>");// Replace with your project IDexportconstaccount=newAccount(client);exportconstdatabase=newDatabases(client);
Suggested correction:
import{Client,Databases,Account}from"appwrite";constclient=newClient();client.setEndpoint("https://cloud.appwrite.io/v1").setProject("<YOUR_PROJECT_ID>");// Replace with your project IDexportconstaccount=newAccount(client);exportconstdatabases=newDatabases(client);
This adjustment ensures that the code functions as expected.
Steps to Reproduce:
Go to the SvelteKit tutorial step 3.
Follow the provided code snippet.
Expected Behavior:
The code provided should be accurate and functional.
💭 Description
In the React tutorial under step 3, there is a mistake in the code snippet provided. Specifically, the export statement in line 9 exports database but in our step 7: Create ideas page, the import statement imports databases.
Current code:
Suggested correction:
This adjustment ensures that the code functions as expected.
Steps to Reproduce:
Expected Behavior:
The code provided should be accurate and functional.
Additional Information:
Documentation URL: https://appwrite.io/docs/tutorials/react/step-3
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: