\n\n\n

Button Example

\n \n\n\n```\n\nHere is my py file I am using fast api\n\n```py\nfrom fastapi import FastAPI, Request\nfrom fastapi.responses import HTMLResponse\nfrom fastapi.templating import Jinja2Templates\nfrom fastapi import FastAPI, Request\nfrom fastapi.responses import HTMLResponse\nfrom fastapi.staticfiles import StaticFiles\nfrom fastapi.templating import Jinja2Templates\n\napp = FastAPI()\n\napp.mount(\"/static\", StaticFiles(directory=\"static\"), name=\"static\")\n\n\ntemplates = Jinja2Templates(directory=\"\")\n\n\n@app.get(\"/\", response_class=HTMLResponse)\nasync def read_item(request: Request):\n return templates.TemplateResponse(\"index.html\", {\"request\": request})```\n\n\nI am stuck with this error \n\n127.0.0.1/:1 Uncaught TypeError: Failed to resolve module specifier \"appwrite\". Relative references must start with either \"/\", \"./\", or \"../\".\n\nPlease do help","author":{"@type":"Person","name":"Aarush Acharya"},"datePublished":"2024-01-21T12:32:16.925Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":0},"commentCount":4,"comment":[{"@type":"Comment","text":"what does fastapi have to do with appwrite?","author":{"@type":"Person","name":"Philipp"},"datePublished":"2024-01-21T12:35:37.051Z","url":"https://appwrite.io/threads/1198605989524553820#message-1198606828913819760"},{"@type":"Comment","text":"I was building my website using fast api, rendering html template and now I need auth in it so using appwrite for it","author":{"@type":"Person","name":"Aarush Acharya"},"datePublished":"2024-01-21T12:37:38.451Z","url":"https://appwrite.io/threads/1198605989524553820#message-1198607338102333591"},{"@type":"Comment","text":"Please do help me figure this out","author":{"@type":"Person","name":"Aarush Acharya"},"datePublished":"2024-01-21T12:42:27.381Z","url":"https://appwrite.io/threads/1198605989524553820#message-1198608549962596402"},{"@type":"Comment","text":"@Philipp am I doing something wrong?","author":{"@type":"Person","name":"Aarush Acharya"},"datePublished":"2024-01-21T12:46:56.500Z","url":"https://appwrite.io/threads/1198605989524553820#message-1198609678729494585"}]}}
Skip to content
Back
Web

Appwrite not getting imported in Js

Votes

0

Replies

4

Participants

Unknown

Messages

5

Aarush AcharyaOriginal post

Rank 3: Container

Philipp
Aarush Acharya

Rank 3: Container

Aarush Acharya

Rank 3: Container

Aarush Acharya

Rank 3: Container

Join the discussion

Reply to this thread by joining our Discord.

Reply on Discord