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

AG Grid JS error when running in native window #3935

Open
juledwar opened this issue Oct 31, 2024 · 3 comments
Open

AG Grid JS error when running in native window #3935

juledwar opened this issue Oct 31, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@juledwar
Copy link

juledwar commented Oct 31, 2024

Description

This only happens when running in a native window. I have an ag-grid on a page, and when loading the page I get this error in the console output:

js: TypeError: Failed to resolve module specifier "ag-grid-community". Relative references must start with either "/", "./", or "../".

This halts further set up of the page (anything constructed after the error does not appear).

I'm also seeing

Registered new object after initialization, existing clients won't be notified!

which seems to be a Qt WebEngine error, not sure if related to this.

Can be reproduced with this code (I just copy pasted what I am doing, you can probably repro without the extra classes and settings):

from nicegui import ui

ui.aggrid(
    {
        'columnDefs': [
            {
                'field': 'value',
                'type': 'numericColumn',
                'width': 100,
            },
            {'field': 'stat'},
        ],
        'defaultColDef': {
            'flex': 1,
            'enableCellChangeFlash': True,
        },
        'rowData': [],
        'headerHeight': 0,
    }
).classes('min-w-fit')

ui.run(native=True, show=False)
@juledwar
Copy link
Author

nicegui==2.5.0
PyQt5==5.15.11
PyQt5-Qt5==5.15.15
PyQt5_sip==12.15.0
PyQtWebEngine==5.15.7
PyQtWebEngine-Qt5==5.15.15
QtPy==2.4.1

@falkoschindler
Copy link
Contributor

Strange. I can't reproduce the problem on macOS. What OS are you using? Can anyone else reproduce the error?

@falkoschindler falkoschindler added the help wanted Extra attention is needed label Nov 3, 2024
@juledwar
Copy link
Author

juledwar commented Nov 3, 2024

Ubuntu 24.04, under KDE using the QT view (not Gnome).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants