digitros / nextjs-fastapi

https://nextjs-fastapi-starter.vercel.app
MIT License
407 stars 117 forks source link

No module named 'auth' #5

Closed masapasa closed 1 year ago

masapasa commented 1 year ago

File "nextjs-fastapi-starter/api/index.py", line 7, in from auth.auth_bearer import JWTBearer ModuleNotFoundError: No module named 'auth' Hi @digitros @steven-tey i have auth folder inside api. How can I fix this error? Thanks a lot! I run npm run fastapi-dev

marcianosr commented 1 year ago

@masapasa How did you solve it?

marcianosr commented 1 year ago

Oh, just give up the correct filepath, for example: import api.utils as utils