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

Cannot find package 'tslib' imported from #1244

Closed
kevinsimper opened this issue Nov 9, 2023 · 2 comments · Fixed by #1245
Closed

Cannot find package 'tslib' imported from #1244

kevinsimper opened this issue Nov 9, 2023 · 2 comments · Fixed by #1245
Assignees
Labels
bug Something isn't working

Comments

@kevinsimper
Copy link

kevinsimper commented Nov 9, 2023

$ npm install @xata.io/cli -g
$ xata init --db https://Kevin-Simper-s-workspace-gf8rf3.eu-west-1.xata.sh/db/cykelbjerge
 ›   ModuleLoadError: [MODULE_NOT_FOUND] import() failed to load /Users/kevinsimper/.nvm/versions/node/v20.9.0/lib/node_modules/@xata.io/cli/dist/commands/init/index.js: Cannot find package 'tslib' imported from
 ›   /Users/kevinsimper/.nvm/versions/node/v20.9.0/lib/node_modules/@xata.io/cli/dist/base.js
 ›   Code: MODULE_NOT_FOUND
🧑‍🎨🌼 9:51:10:~/projects
$ xata --version
@xata.io/cli/0.14.3 darwin-arm64 node-v20.9.0

Downgraded and it works

$ xata --version
@xata.io/cli/0.13.14 darwin-arm64 node-v20.9.0
@kevinsimper kevinsimper added the bug Something isn't working label Nov 9, 2023
@SferaDev SferaDev self-assigned this Nov 9, 2023
@SferaDev
Copy link
Member

SferaDev commented Nov 9, 2023

Hey @kevinsimper, thanks for reporting this issue. I've opened a PR to fix it for now, although I will take a proper look into our usage of tslib.

You can try the fix with:

npx @xata.io/[email protected]

@eemmiillyy Can you review the PR and tag a CLI release directly after merging so that the fix goes out this morning instead of waiting to monday?

@SferaDev
Copy link
Member

SferaDev commented Nov 9, 2023

@kevinsimper Fix is on latest npm tag. Apologies for the inconvenience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants