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

[anywidget] Deprecation Warning. Direct export of a 'render' will likely be deprecated in the future #3361

Closed
mattijn opened this issue Mar 14, 2024 · 0 comments · Fixed by #3364
Labels

Comments

@mattijn
Copy link
Contributor

mattijn commented Mar 14, 2024

I noticed the following warning in the console log when running a JupyterChart:

widget.js:118  [anywidget] Deprecation Warning. Direct export of a 'render' will likely be deprecated in the future. To migrate ...

Remove the 'export' keyword from 'render'
-----------------------------------------

export function render({ model, el }) { ... }
^^^^^^

Create a default export that returns an object with 'render'
------------------------------------------------------------

function render({ model, el }) { ... }
         ^^^^^^
export default { render }
                 ^^^^^^

To learn more, please see: manzt/anywidget#395

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant