You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "NurramoX (via GitHub)" <gi...@apache.org> on 2023/12/25 00:45:37 UTC

[I] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

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

   When attempting to use the Yeoman generator @superset-ui/superset for creating a custom Superset plugin, an error occurs stating that the current environment does not provide some necessary feature that the generator needs. The error message doesn't tell exactly which feature it needs...
   This issue arises after following the steps provided in the [Preset blog](https://preset.io/blog/building-custom-viz-plugins-in-superset-v2/) for building custom visualization plugins in Superset. The expected behavior is to receive a prompt from the generator asking a few questions, but instead, an error is encountered.
   
   #### 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
   
   The generator should prompt the user with questions to set up the new Superset plugin.
   
   ### Actual results
   
   An error message is displayed: 
   `
   Error @superset-ui/superset Current environment doesn't provide some necessary feature this generator needs.`
   
   ### Environment
   
   - Debian Version: Debian 12
   - superset version: 3.0.2
   - node.js version: 16.20.2
   
   ### Checklist
   
   - [ ] 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.
   - [x] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   
   Downgrading Yeoman to version 4 (npm i -g yo@4) resolves the issue. It seems that the current version of @superset-ui/superset generator may not be compatible with Yeoman version ^5.0.0.
   


-- 
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] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

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

   I am also facing this error.
   Try this command; it's working for me.
   -> npm i -g yo
   -> npm i -g @superset-ui/generator-superset


-- 
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] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

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

   I ran into the same issue. Downgrading to the latest 4.x.x version was a workaround.


-- 
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] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

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

   Same error, anybody relove this problem?


-- 
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] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

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

   @visharavana 
   I faced same error and `npm i -g @superset-ui/generator-superset` worked for me. Thanks!
   


-- 
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] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

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

   Just stopping by to acknowledge that this is still an issue, but I'm planning to get rid of Yeoman. Holler if anyone has preferences between
   • A disabled "vanilla" plugin in the Superset codebase, to riff on.
   • A template GitHub repo to spin up a new plugin (with CI to maintain it).
   
   I feel the first option might be easier for devs AND easier to maintain, but I'm not at all certain. 


-- 
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] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

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

   Closing this as not-planned, since we're moving toward a new extensions architecture, and new build tools will come with that. If anyone wants to open a PR to improve/update the existing generator, we'd still welcome that, but it's not where we're spending our time at the moment.


-- 
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] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

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

   > npm i -g @superset-ui/generator-superset
   
   amazing it worked in that way:
   
   ```bash
   npm i -g yo
   npm i -g @superset-ui/generator-superset
   
   cd superset-frontend/packages/generator-superset
   npm i && npm link
   ```
   
   ## Create Example Plugin
   
   ```bash
   mkdir /tmp/superset-plugin-chart-hello-world
   cd /tmp/superset-plugin-chart-hello-world
   yo @superset-ui/superset
   ```


-- 
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] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

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

   Happy to update blogs/docs if better instructions would help others. Let me know what you think on that front.
   
   Also open to PRs that will make things work better with Yeoman 5... it's probably time to make that upgrade.
   
   I'm _kind of_ on the fence about whether the yeoman generator is even the right approach here anymore (it's difficult to maintain). There are other ways, like maybe (1) a template repository, (2) a zip file in the repo with a demo plugin, maybe including a little script to add it to Superset, or (3) just a "hello world" plugin sitting there in the monorepo, with tests and storybook running against it as if it were a production plugin (but not installed in Superset).
   
   I've been meaning to have this conversation with @villebro but he's a busy guy ;)


-- 
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] Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #26352: Yeoman Generator @superset-ui/superset Fails with Environment Compatibility Error
URL: https://github.com/apache/superset/issues/26352


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