https://github.com/tidbitsjs/devflow
Stackoverflow Clone using Next.js 14
https://github.com/tidbitsjs/devflow
Last synced: about 1 year ago
JSON representation
Stackoverflow Clone using Next.js 14
- Host: GitHub
- URL: https://github.com/tidbitsjs/devflow
- Owner: TidbitsJS
- Created: 2023-07-27T11:01:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T17:49:15.000Z (over 1 year ago)
- Last Synced: 2024-11-05T03:36:28.438Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://devflow-rose.vercel.app
- Size: 2.96 MB
- Stars: 9
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
**Cannot find module 'next/image'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?ts(2792)**
If you see this error after the installation, go to the tsconfig.json and change the setting:
```javascript
// From
"moduleResolution": "bundler",
// To
"moduleResolution": "Node",
```
#
**shadcn**
```bash
✔ Would you like to use TypeScript (recommended)? / yes
✔ Which style would you like to use? › New York
✔ Which color would you like to use as base color? › Slate
✔ Where is your global CSS file? app/globals.css
✔ Would you like to use CSS variables for colors? no
✔ Where is your tailwind.config.js located? tailwind.config.js
✔ Configure the import alias for components: @/components
✔ Configure the import alias for utils: @/lib/utils
✔ Are you using React Server Components? yes
✔ Write configuration to components.json. Proceed? yes
```
#
**Change ECMAScript version to support latest javascript functions (and to avoid few TypeScript Errors)**
```javascript
// From
"compilerOptions": {
"target": "es5",
...
}
// To
"compilerOptions": {
"target": "es2022",
...
}
```
#