skol-pro opened a new issue, #24640: URL: https://github.com/apache/superset/issues/24640
While following the [Building Custom Viz Plugins in Superset v2 (Updated for Monorepo)](https://preset.io/blog/building-custom-viz-plugins-in-superset-v2/) article, at the step of running `npm run build` I get an error. #### How to reproduce the bug 1. Follow the steps from the article until building the custom viz ### Stacktrace ` > [email protected] build-cjs > babel src --extensions ".ts,.tsx,.js,.jsx" --copy-files --out-dir lib Error: /private/tmp/superset-plugin-chart-hello-world/babel.config.js: Error while loading config - Cannot find module '@airbnb/config-babel' Require stack: - /private/tmp/superset-plugin-chart-hello-world/babel.config.js - /private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/module-types.js - /private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/configuration.js - /private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/index.js - /private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/index.js - /private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/lib/babel/options.js - /private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/lib/babel/index.js - /private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/bin/babel.js at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/private/tmp/superset-plugin-chart-hello-world/babel.config.js:1:23) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/private/tmp/superset-plugin-chart-hello-world/babel.config.js', '/private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/module-types.js', '/private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/configuration.js', '/private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/index.js', '/private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/index.js', '/private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/lib/babel/options.js', '/private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/lib/babel/index.js', '/private/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/bin/babel.js' ] } ` ### Environment (please complete the following information): - browser type and version: not applicable - superset version: latest - python version: none - node.js version: 18.15.0 - any feature flags active: no ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. -- 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]
