Skip to content
New issue

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

nicegui x fastApi problem #244

Closed
Gus-The-Forklift-Driver opened this issue Jan 16, 2023 · 2 comments
Closed

nicegui x fastApi problem #244

Gus-The-Forklift-Driver opened this issue Jan 16, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Gus-The-Forklift-Driver

When trying to launch the fast api example, I get this error :
AttributeError: module 'nicegui.globals' has no attribute 'tailwind'
I'm a bit of a noob and tried to install the package tailwind, but this gave no results.

This problem is also true in my own project using the code from the example

@elik-vayyar
Copy link
Contributor

I just had the same problem.
There is a missing globals definition in the run_with function:

globals.tailwind = True

@falkoschindler
Copy link
Contributor

Hi, thanks for reaching out!
This was indeed a tiny bug when starting NiceGUI with an existing FastAPI app. This should be fixed in e37789c.

@falkoschindler falkoschindler self-assigned this Jan 16, 2023
@falkoschindler falkoschindler added the bug Something isn't working label Jan 16, 2023
@falkoschindler falkoschindler added this to the v1.1.3 milestone Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants