ivanshamaev opened a new issue, #22641: URL: https://github.com/apache/superset/issues/22641
Hi all! On new releases 2.0.0 and 2.0.1, I can't repeat the deployment of custom visualization into a superset image (as I used to do on 1.3.2 version). I get an **"Unexpected error: TypeError: Go.default is not a constructor"** error, while neither the dashboard nor the creation of charts work. Something is wrong in the image built locally by me. Without custom plugin all works. With plugin - it shows the error. **The sequence of my actions:** 1. Created a new demo plugin using the new instructions [https://preset.io/blog/building-custom-viz-plugins-in-superset-v2/](https://preset.io/blog/building-custom-viz-plugins-in-superset-v2/) and [https://superset.apache.org/docs/contributing/creating-viz-plugins](https://superset.apache.org/docs/contributing/creating-viz-plugins). 2. Checked through the dev server, everything works . 3. Published demo hello world plugin in npmjs (public repository) - [https://www.npmjs.com/package/superset-plugin-chart-counters-new](https://www.npmjs.com/package/superset-plugin-chart-counters-new) 4. Added lines to **package.json** & **MainPreset.js** files 5. Launched the image build. Everything worked without errors 6. Run docker-compose locally with the image that I built 7. I go to the dashboard or create a chart - an error is shown. In version 1.3.2, I did exactly these steps for deploying plugins. But in the new version it doesn't work for some reason. My searches have not yielded results. ------- **_superset/superset-frontend/package.json_** `"superset-plugin-chart-counters-new": "0.1.0",` **_superset/superset-frontend/src/visualizations/presets/MainPreset.js_** ```import SupersetPluginChartCountersNew from 'superset-plugin-chart-counters-new'; new SupersetPluginChartCountersNew().configure({ key: 'superset-plugin-chart-counters-new', }), ``` **_Building an image_** `sudo docker build -f Dockerfile --force-rm -t apache/temp-superset:2.0.12 .` **_run docker-compose:_** `sudo docker-compose -f docker-compose-non-dev.yml up` ### Other errors from docker containers ``` List of error: Unexpected error: TypeError: Go.default is not a constructor Unhealthy container superset_worker: [2023-01-05 15:46:00,053: INFO/MainProcess] Task reports.scheduler[b0fccb65-8f9e-49f1-a89a-cf6c6929cb82] received [2023-01-05 15:46:00,073: INFO/ForkPoolWorker-1] Task reports.scheduler[b0fccb65-8f9e-49f1-a89a-cf6c6929cb82] succeeded in 0.018434799000260682s: None Unhealthy container superset_worker_beat: [2023-01-05 15:48:00,050: INFO/MainProcess] Scheduler: Sending due task reports.scheduler (reports.scheduler) Common log: superset_app | [2023-01-05 15:39:04 +0000] [10] [ERROR] Error handling request superset_app | Traceback (most recent call last): superset_app | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 326, in handle_request superset_app | resp.write_file(respiter) superset_app | File "/usr/local/lib/python3.8/site-packages/gunicorn/http/wsgi.py", line 385, in write_file superset_app | if not self.sendfile(respiter): superset_app | File "/usr/local/lib/python3.8/site-packages/gunicorn/http/wsgi.py", line 375, in sendfile superset_app | self.sock.sendfile(respiter.filelike, count=nbytes) superset_app | File "/usr/local/lib/python3.8/socket.py", line 482, in sendfile superset_app | return self._sendfile_use_sendfile(file, offset, count) superset_app | File "/usr/local/lib/python3.8/socket.py", line 346, in _sendfile_use_sendfile superset_app | self._check_sendfile_params(file, offset, count) superset_app | File "/usr/local/lib/python3.8/socket.py", line 460, in _check_sendfile_params superset_app | raise ValueError( superset_app | ValueError: count must be a positive integer (got 0) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
