visualize-admin / visualization-tool

The tool for visualizing Swiss Open Government Data. Project ownership: Federal Office for the Environment FOEN
https://visualize.admin.ch
BSD 3-Clause "New" or "Revised" License
29 stars 3 forks source link

VisualizeAPI demo throws error #1625

Closed Rdataflow closed 2 weeks ago

Rdataflow commented 2 weeks ago

Describe the bug Clicking on those demo buttons throws an error

To Reproduce Steps to reproduce the behavior:

  1. Go to https://visualize.admin.ch/_preview_post
  2. Click on either button
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots or video

Application error: a client-side exception has occurred (see the browser console for more information).

Environment (please complete the following information):

Additional context consider: NFI cubes on PROD will be updated very soonish (before visualize relase) with what is live on INT now

Uncaught Error: You need an <ConfiguratorStateProvider> to useConfiguratorState
    at ew (configurator-state.tsx:1856:11)
    at z (chart-published.tsx:62:19)
    at ak (react-dom.production.min.js:167:135)
    at i (react-dom.production.min.js:290:335)
    at oD (react-dom.production.min.js:280:383)
    at react-dom.production.min.js:280:319
    at oO (react-dom.production.min.js:280:319)
    at ox (react-dom.production.min.js:268:166)
    at x (scheduler.production.min.js:13:197)
    at MessagePort.T (scheduler.production.min.js:14:126)
bprusinowski commented 2 weeks ago

Hi @Rdataflow, thanks for reporting the issue. The problem is already solved on TEST and INT, see e.g. https://int.visualize.admin.ch/_preview_post

If the fix needs to be deployed before the official Visualize release, then I think it would be good to coordinate with @adintegra, but from technical side the bug is fixed 👍

Rdataflow commented 2 weeks ago

THX - I wasn't aware anymore 👍