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

Not able to install snippets. #9383

Open
alanbosco003 opened this issue Dec 26, 2024 · 0 comments
Open

Not able to install snippets. #9383

alanbosco003 opened this issue Dec 26, 2024 · 0 comments

Comments

@alanbosco003
Copy link

Description

When I'm trying to install snipps for chakraUI. I'm not able to install it.

I'm able to charka UI. but when I'm trying to install snippets.

This is the error I'm getting :

node:internal/errors:478
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@chakra-ui/react' imported from /Users/alan/.nvm/versions/node/v16.20.2/lib/node_modules/@chakra-ui/cli/dist/esm/commands/eject.js
    at new NodeError (node:internal/errors:387:5)
    at packageResolve (node:internal/modules/esm/resolve:852:9)
    at moduleResolve (node:internal/modules/esm/resolve:901:20)
    at defaultResolve (node:internal/modules/esm/resolve:1115:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}```


But chakra UI is installed.

which you can see from here:

npm i @chakra-ui/react @emotion/react

```npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '>=18' },
npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '>=20.0.0' },
npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '>=20.0.0' },
npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
npm WARN EBADENGINE }```








### Link to Reproduction

https://github.com/alanbosco003/React-State-Management/tree/bug-chakraIssue

### Steps to reproduce

create a new project in node 16 install chakra ( which is mentioned on docs )|
npm i @chakra-ui/react @emotion/react

then try to install snippets:

npx @chakra-ui/cli snippet add

I'm also putting the github link:

https://github.com/alanbosco003/React-State-Management/tree/bug-chakraIssue

🚁 🚁 🚁 🚁 🚁 🚁 🚁 🚁🚁 🚁 🚁 🚁 🚁 🚁 🚁 🚁



### Chakra UI Version

"@chakra-ui/react": "^3.2.3",

### Browser

_No response_

### Operating System

- [X] macOS
- [ ] Windows
- [ ] Linux

### Additional Information

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

1 participant