ericclemmons / ericclemmons/click-to-component
NextJS 13 incompatbility, does not work in /app directory at all
- Dominant language
- JavaScript
- Stars
- 2.4k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Works inside the /pages directory, but not inside /app directory.
**To Reproduce**
1. create fresh app `npx create-next-app@latest`
2. create /app/ClickToComponentClient.tsx, put at the top of the file `'use client';` and import and add ``
3. create /app/test/page.ts and import and add ``
4. goto `http://localhost:3000/test` and try to use
- WORKS: hover works, I see green selections, no problem there
- ERROR: when I click it starts to download the page and produces error message instead going to the VSCode
**Expected behavior**
Expected to open VSCode to the component, as it worked in /pages directory.
**Screenshots**
None.
**Desktop (please complete the following information):**
- OS: MacOS
- Browser Chrome
- Version latest
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.