flet
flet copied to clipboard
import Error
Duplicate Check
- [x] I have searched the opened issues and there are no duplicates
Describe the bug
from ..components.card import Card
ImportError: attempted relative import beyond top-level package
and
from frontend.src.components.card import Card
ModuleNotFoundError: No module named 'frontend'
Code sample
Code
import flet as ft
from ..components.card import Card
and
from frontend.src.components.card import Card
To reproduce
.
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
Windows
Operating system details
win 11
Flet version
last
Regression
No, it isn't
Suggestions
please makes like react native
Logs
Logs
[Paste your logs here]
Additional details
No response
Doesnt seem to me like a Flet error, but like a normal Python error, which depends on how your project is organized. You can search for a solution online or ask AI :)