smile2008 opened a new issue, #33355:
URL: https://github.com/apache/superset/issues/33355

   ### Bug description
   
   Follow all steps "Creating Visualization Plugins" in 
https://superset.apache.org/docs/contributing/howtos
   superset stable latest from git (4.1.2), node v20.19.1,  npm 10.8.1.
   
   when I run  "npm run build" in /tmp/superset-plugin-chart-hello-world, I got 
error:
   
   `smile@bi-dev:/tmp/superset-plugin-chart-hello-world$ npm run build
   
   > [email protected] prebuild
   > rimraf {lib,esm,tsconfig.tsbuildinfo}
   
   
   > [email protected] build
   > npm run build-cjs && npm run build-esm && npm run ts-types
   
   
   > [email protected] build-cjs
   > babel src --extensions ".ts,.tsx,.js,.jsx" --copy-files --out-dir lib
   
   Error: Cannot find module '@airbnb/config-babel'
   Require stack:
   - /tmp/superset-plugin-chart-hello-world/babel.config.js
   - 
/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/module-types.js
   - 
/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/configuration.js
   - 
/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/index.js
   - 
/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/index.js
   - 
/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/lib/babel/options.js
   - 
/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/lib/babel/index.js
   - /tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/bin/babel.js
       at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
       at Module._load (node:internal/modules/cjs/loader:1043:27)
       at Module.require (node:internal/modules/cjs/loader:1298:19)
       at require (node:internal/modules/helpers:182:18)
       at Object.<anonymous> 
(/tmp/superset-plugin-chart-hello-world/babel.config.js:1:23)
       at Module._compile (node:internal/modules/cjs/loader:1529:14)
       at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
       at Module.load (node:internal/modules/cjs/loader:1275:32)
       at Module._load (node:internal/modules/cjs/loader:1096:12)
       at Module.require (node:internal/modules/cjs/loader:1298:19) {
     code: 'MODULE_NOT_FOUND',
     requireStack: [
       '/tmp/superset-plugin-chart-hello-world/babel.config.js',
       
'/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/module-types.js',
       
'/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/configuration.js',
       
'/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/config/files/index.js',
       
'/tmp/superset-plugin-chart-hello-world/node_modules/@babel/core/lib/index.js',
       
'/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/lib/babel/options.js',
       
'/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/lib/babel/index.js',
       
'/tmp/superset-plugin-chart-hello-world/node_modules/@babel/cli/bin/babel.js'
     ]
   }`
   
   Please help me with this error
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
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]

Reply via email to