Skip to content

Snippets & Templates Issue Extension Issue #1

@danielkorkin

Description

@danielkorkin

Error

Failed to load file SnippetsPage.tsx from extension snippets: Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

Trouble Shooting

~ npm ls react
├─┬ @monaco-editor/react@4.6.0
│ └── react@18.3.1 deduped
├─┬ next@14.2.7
│ ├── react@18.3.1 deduped
│ └─┬ styled-jsx@5.1.1
│   └── react@18.3.1 deduped
├─┬ react-dom@18.3.1
│ └── react@18.3.1 deduped
├─┬ react-hook-form@7.53.0
│ └── react@18.3.1 deduped
├─┬ react-icons@5.3.0
│ └── react@18.3.1 deduped
├─┬ react-monaco-editor@0.56.1
│ └── react@18.3.1 deduped
├─┬ react-tooltip@5.28.0
│ └── react@18.3.1 deduped
└── react@18.3.1

~ npm ls react-dom
├─┬ @monaco-editor/react@4.6.0
│ └── react-dom@18.3.1 deduped
├─┬ next@14.2.7
│ └── react-dom@18.3.1 deduped
├── react-dom@18.3.1
└─┬ react-tooltip@5.28.0
  └── react-dom@18.3.1 deduped

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions