?
全局安装 npm install webpack -g
superset-frontend> npm install eslint
全局安装Yo>? ?npm i -g yo
npm?i &&?npmlink
superset-frontend目录下,新建文件夹temp ,新建superset-plugin-chart-hello-world
mkdir /superset-frontend/
temp
/superset-plugin-chart-hello-worldcd /superset-frontend/
temp
/superset-plugin-chart-hello-world
> yo? 然后一步一步回车即可,
npm i --force
npm run build
superset-frontend> npm i -S temp\superset-plugin-chart-hello-world
import { SupersetPluginChartHelloWorld } from 'superset-plugin-chart-hello-world';new?SupersetPluginChartHelloWorld().configure({?key:?'ext-hello-world'?}),
superset-frontend>npm?run dev-server
superset>?set FLASK_APP=superset
superset>?superset init
superset>?
superset run -p 8088 --with-threads --reload --debugger
效果:
?
??
?
解决方案:
superset-frontend>
?cnpm install
运行yo 命令 显示 Available 说明可以进行下一步操作了
解决方案:
修改superset-plugin-chart-hello-world/package.json
build-esm 和 dev 分别添加set?
解决方案:
superset-frontend>
npx update-browserlist-db@latest
?
解决方案:
修改 moment-with-locales.js 文件
aliasedRequire('./locale/'?+ name); 改为?aliasedRequire('moment/locale/'?+ name);