We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The action import in the documentation is incorrect: https://github.com/oclif/core/blob/main/src/ux/README.md
It suggests that it should be imported like:
import { action } from "@oclif/core/ux"
However, it has to be imported like:
import { ux } from "@oclif/core/ux" const { action } = ux
To Reproduce
Minimal repro provided here: https://github.com/s-palmer/oclif-ux-package-repro
Steps to reproduce the behavior:
npm install
npm exec tsc
src/commands/hello.ts:2:10 - error TS2305: Module '"@oclif/core/ux"' has no exported member 'action'.
ux module imported as per documentation: https://github.com/oclif/core/blob/main/src/ux/README.md
Expected behavior The UX module should be able to be imported as per the documentation
Screenshots If applicable, add screenshots to help explain your problem.
The suggested import doesn't work. The ux module can be accessed as per the commented out code below:
import { action } from "@oclif/core/ux" // import ux from "@oclif/core/ux" // const { action } = ux.ux
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
This issue has been linked to a new work item: W-17454648
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
The action import in the documentation is incorrect: https://github.com/oclif/core/blob/main/src/ux/README.md
It suggests that it should be imported like:
However, it has to be imported like:
To Reproduce
Minimal repro provided here: https://github.com/s-palmer/oclif-ux-package-repro
Steps to reproduce the behavior:
npm install
npm exec tsc
ux module imported as per documentation: https://github.com/oclif/core/blob/main/src/ux/README.md
Expected behavior
The UX module should be able to be imported as per the documentation
Screenshots
If applicable, add screenshots to help explain your problem.
The suggested import doesn't work. The ux module can be accessed as per the commented out code below:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: