Skip to content
New issue

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

csdx --version throws error #1738

Open
AlexanderKapelyukhovskiy opened this issue Jan 30, 2025 · 6 comments
Open

csdx --version throws error #1738

AlexanderKapelyukhovskiy opened this issue Jan 30, 2025 · 6 comments

Comments

@AlexanderKapelyukhovskiy

I'm following your guide and installing contentstack cli with help of following command

npm install -g @contentstack/cli

I have node.js v20.5.1 at Windows 11 machine.
when I'm trying validate cli with help of command

csdx --help

I'm getting following error:

(node:58948) Warning: TypeError
module: @oclif/core@3.27.0
task: findCommand (cm:export-to-csv)
plugin: @contentstack/cli-cm-export-to-csv
root: C:\Users\xxx\AppData\Roaming\nvm\v20.5.1\node_modules\@contentstack\cli\node_modules\@contentstack\cli-cm-export-to-csv
message: Cannot read properties of undefined (reading 'print')
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
(node:58948) Warning: TypeError
module: @oclif/core@3.27.0
task: findCommand (launch:deployments)
plugin: @contentstack/cli-launch
root: C:\Users\xxx\AppData\Roaming\nvm\v20.5.1\node_modules\@contentstack\cli\node_modules\@contentstack\cli-launch
...

could you please suggest how to fix it?

@harshithad0703
Copy link
Contributor

Hi @AlexanderKapelyukhovskiy
Thank you for raising the issue. We’ll look into it and get back to you as soon as we have an update.

cc: @netrajpatel @aman19K @cs-raj @shafeeqd959

@cs-raj
Copy link
Contributor

cs-raj commented Feb 6, 2025

Hi @AlexanderKapelyukhovskiy which version of cli are you using?

@AlexanderKapelyukhovskiy
Copy link
Author

AlexanderKapelyukhovskiy commented Feb 7, 2025

Hi @cs-raj . I tried to install the latest version and it was 1.34.0

@naman-contentstack
Copy link
Contributor

hey @AlexanderKapelyukhovskiy, we attempted to reproduce this internally using the specified versions but couldn’t replicate the issue. Please try uninstalling and installing the package.

Additionally we have checked with versions 1.33.0, 1.34.0, and 1.35.0, and were working fine.

Please let us know if you encounter any issues.

@AlexanderKapelyukhovskiy
Copy link
Author

I was able to get it working on a completely new laptop running Windows 11.

Before that, I tried multiple times to install/uninstall and used different Node.js versions via npm, but nothing worked. I can still reproduce the issue on my old laptop.

I have completed my initial task, but if you’re interested, I’d be happy to share more details to help identify and resolve the root cause of the issue. Let me know if you’d like me to provide more information.

@AlexanderKapelyukhovskiy
Copy link
Author

I believe the main problem is in @oclif/core@3.27.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants