codestates / codestates/quokkaBoard-server

[ ๐Ÿ“Œ Error Handling] tsc ํŠธ๋žœ์ŠคํŒŒ์ผ๋ง - ๊ฒฝ๋กœ์ฐพ๊ธฐ์—๋Ÿฌ

Open
#36 0 comments 1 reaction 1 assignee Claimed by @skyupguf View on GitHub
Complete err_handling
Dominant language
TypeScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### ์–ด๋–ค ์—๋Ÿฌ์ธ๊ฐ€์š”?
- tsc ํŠธ๋žœ์ŠคํŒŒ์ผ์‹œ ๊ฒฝ๋กœ๋ฅผ ์ฝ์ง€ ๋ชปํ•˜๋Š” ์—๋Ÿฌ

### ์—๋Ÿฌ ๋ฉ”์‹œ์ง€
![์Šคํฌ๋ฆฐ์ƒท, 2021-06-26 22-56-58](https://user-images.githubusercontent.com/75276357/123518548-4c3d3f00-d6e1-11eb-838c-55740757d253.jpg)

### ์—๋Ÿฌ ํ•ธ๋“ค๋ง ๋ฐฉ๋ฒ•
- ํŠธ๋žœ์ŠคํŒŒ์ผ์— ๋Œ€ํ•œ ์ดํ•ด๋ถ€์กฑ
- ๋กœ์ปฌ์—์„œ tsc๋ฅผ ๋‹ค๋ฃฐ๊ฒฝ์šฐ ๊ฐ tsํŒŒ์ผ์ด ์กด์žฌํ•˜๋Š” ๊ฒฝ๋กœ๋งˆ๋‹ค tsconfig ๊ฐ€ ํ•„์š”ํ•˜๋‹ค.
- npm scripts์—์„œ ๋ฃจํŠธ์— ์žˆ๋Š” tsconfig ํŒŒ์ผ๋กœ build์‹œ ํŠธ๋žœ์ŠคํŒŒ์ผํ•˜๋„๋ก ์„ค์ •ํ•˜์—ฌ ํ•ด๊ฒฐํ•œ๋‹ค.
```
"scripts": { "build": "tsc" } // package.json ํŒŒ์ผ
```
### ์—๋Ÿฌ ํ•ธ๋“ค๋ง์„ ์œ„ํ•ด ์ฐธ๊ณ ํ•œ ๋ ˆํผ๋Ÿฐ์Šค ๋งํฌ
[๋งํฌ1](https://stackoverflow.com/questions/63320525/error-ts1259-module-node-modules-types-express-index-can-only-be-default)
[๋งํฌ2](https://stackoverflow.com/questions/31749952/how-to-run-typescript-compiler-as-a-package-json-script-without-grunt-or-gulp)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.