gpt4 book ai didi

apache-superset - 有没有人尝试根据 preset.io 博客使用 Superset 制作自定义图表?

转载 作者:行者123 更新时间:2023-12-04 04:00:30 29 4
gpt4 key购买 nike

所以我关注了:https://preset.io/blog/2020-07-02-hello-world/用于创建一个简单的 hello-world 插件,还关注了这个视频:https://www.youtube.com/watch?v=f6up5x_iRbI&t=936s

它在那里工作得非常顺利,但是当我最后尝试它时,我遇到了很多问题。我也尝试在 docker 上运行它,但仍然没有用。 Pypi 版本似乎已过时。这是我尝试运行 npm run prod 时遇到的错误:

ERROR in ./src/visualizations/presets/MainPreset.js Module not found:Error: Can't resolve '@superset-ui/plugin-chart-hello-world' in'/home/spidey/apache_superset/superset-dev/incubator-superset/superset-frontend/src/visualizations/presets'

当我打开 MainPreset.js 文件时:

这是它的样子: enter image description here和底部配置: enter image description here

回到superset-frontend/node-modules/@superset-ui/我有: enter image description here

当我运行 npm run dev-server 时: enter image description here但由于我在虚拟实例上运行它,所以我无法打开浏览器并检查,而当我尝试 npm run prod 时,错误仍然存​​在: enter image description here

最佳答案

我对这里发生的事情有一个怀疑。有没有可能你的插件不在superset-frontend/package.json中?

请注意,如果您将 hello-world 插件放在 package.json 中,然后执行 npm install,则 npm install 将不起作用。这令人沮丧,但您需要按正确的顺序执行这些操作:

  1. npm install(这会破坏任何 npm 链接)
  2. 将插件添加到您的 package.json(版本号并不重要)
  3. 执行 npm link ../../...... 例程
  4. npm run dev-server

希望对您有所帮助,但我会继续尽我所能提供帮助。

关于apache-superset - 有没有人尝试根据 preset.io 博客使用 Superset 制作自定义图表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63110909/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com