You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "vivek-cloudloom (via GitHub)" <gi...@apache.org> on 2023/11/29 17:06:47 UTC

[I] Custom Viz Plugin throwing error after executing yo @superset-ui/superset [superset]

vivek-cloudloom opened a new issue, #26135:
URL: https://github.com/apache/superset/issues/26135

   A clear and concise description of what the bug is.
   
   Trying to create a custom Viz Plugin, followed the steps mentioned in this link.
   https://superset.apache.org/docs/contributing/creating-viz-plugins/
   
   When executing the script yo @superset-ui/superset , it throws error saying **Error @superset-ui/superset.Cannot find module './utils.js'**
   
   
   #### How to reproduce the bug
   
   
   > 
   > npm i -g yo
   > cd superset-frontend/packages/generator-superset
   > npm i
   > npm link
   > 
   > mkdir /tmp/superset-plugin-chart-hello-world
   > cd /tmp/superset-plugin-chart-hello-world
   > 
   > yo @superset-ui/superset
   > 
   ### Expected results
   
   Expected a prompt to input package name and description
   
   ### Actual results
   
   ```
   macbookpro@MACBOOKs-MacBook-Pro superset-plugin-chart-hello-world % yo @superset-ui/superset
   Error @superset-ui/superset 
   
   Cannot find module './utils.js'
   Require stack:
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/node_modules/node-fetch/node_modules/whatwg-url/lib/URL.js
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/node_modules/node-fetch/node_modules/whatwg-url/lib/public-api.js
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/node_modules/node-fetch/lib/index.js
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/node_modules/@octokit/request/dist-node/index.js
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/node_modules/@octokit/core/dist-node/index.js
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/node_modules/@octokit/rest/dist-node/index.js
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/node_modules/github-username/index.js
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/node_modules/yeoman-generator/lib/actions/user.js
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/node_modules/yeoman-generator/lib/index.js
   - /Users/macbookpro/Documents/blinklink/superset/superset/superset-frontend/packages/generator-superset/generators/app/index.js
   ```
   #### Screenshots
   <img width="1034" alt="Screenshot 2023-11-29 at 10 13 40 PM" src="https://github.com/apache/superset/assets/88186667/e53c5bec-be59-4e36-84b9-81226a3de4a8">
   
   
   ### Environment
   
   (please complete the following information):
   
   - node.js version: `v16.20.2`
   - any feature flags active:
   
   ### 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.
   - [ ] I have reproduced the issue with at least the latest released version of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   
   Add any other context about the problem here.
   


-- 
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: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Custom Viz Plugin throwing error after executing yo @superset-ui/superset [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on issue #26135:
URL: https://github.com/apache/superset/issues/26135#issuecomment-1986221157

   Closing the issue assuming the upgrade fixed the issue. Please reopen if that's not the case.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Custom Viz Plugin throwing error after executing yo @superset-ui/superset [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina closed issue #26135: Custom Viz Plugin throwing error after executing yo @superset-ui/superset
URL: https://github.com/apache/superset/issues/26135


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Custom Viz Plugin throwing error after executing yo @superset-ui/superset [superset]

Posted by "gaogaoinvincible (via GitHub)" <gi...@apache.org>.
gaogaoinvincible commented on issue #26135:
URL: https://github.com/apache/superset/issues/26135#issuecomment-1876759731

   Change to yo@4.x


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org