Skip to content

TypeError: Class constructor O cannot be invoked without 'new' #3

@dealmeida-h

Description

@dealmeida-h

Hi,

I'm trying to run your jupyter notebook on my server, but I keep getting the following error:

Failed to create view for 'SmilesView' from module 'smiles_widget' with model 'DOMWidgetModel' from module '@jupyter-widgets/base'
TypeError: Class constructor O cannot be invoked without 'new'
    at new i (INTERNALSERVERADDRESS/nbextensions/jupyter-js-widgets/extension.js?v=20230322101509:2:257463)
    at INTERNALSERVERADDRESS/nbextensions/jupyter-js-widgets/extension.js?v=20230322101509:2:742192

I think this might come from version mismatch of our jupyter-widget?

IPython          : 8.6.0
ipykernel        : 6.18.0
ipywidgets       : 8.0.2
jupyter_client   : 7.4.7
jupyter_core     : 5.0.0
jupyter_server   : 1.23.2
jupyterlab       : 3.5.0
nbclient         : 0.7.0
nbconvert        : 7.2.5
nbformat         : 5.7.0
notebook         : 6.5.2
qtconsole        : not installed
traitlets        : 5.5.0```

Thanks for any insigths on this, and it would be very helpful if you published your widget with cookiecutter!

Best,

Hugo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions