๋ฒ๊ทธ ์ค๋ช
VSCode ํ์ฅ์ ์ฌ๋ฌ tsconfig๊ฐ ์๋ ๋ฆฌํฌ์งํ ๋ฆฌ์์ ์ถฉ๋ํฉ๋๋ค.
๋ชจ๋ tsconfig ์์ ์๋ node_modules
ํด๋๋ฅผ ngcc
ํ๋ ค๊ณ ํ๋ ๊ฒ ๊ฐ์ต๋๋ค.
์ฌํํ๊ธฐ ์ํด
app.component.ts
์ด๊ธฐ์์๋๋ ํ๋
์ถฉ๋ํ์ง ์์์ผ ํฉ๋๋ค.
๋ก๊ทธ
[Info - 8:18:20 PM] Angular language server process ID: 91911
[Info - 8:18:20 PM] Using typescript/lib/tsserverlibrary v4.0.5 from /.vscode/extensions/angular.ng-template-0.1101.0-next.1/node_modules/typescript/lib/tsserverlibrary.js
[Info - 8:18:20 PM] Using @angular/language-service/bundles/ivy v11.1.0-next.3 from /.vscode/extensions/angular.ng-template-0.1101.0-next.1/node_modules/@angular/language-service/bundles/ivy.js
[Info - 8:18:20 PM] Log file: /Library/Application Support/Code/logs/20201218T201630/exthost3/Angular.ng-template/nglangsvc.log
[Error - 8:18:25 PM] Cannot read file '/dev/jscutlery/convoyr/dev/jscutlery/convoyr/tsconfig.json'.
No inputs were found in config file '/dev/jscutlery/convoyr/dev/jscutlery/convoyr/apps/sandbox/tsconfig.json'. Specified 'include' paths were '["**/*.ts"]' and 'exclude' paths were '[]'.
Error: ENOENT: no such file or directory, scandir '/dev/jscutlery/convoyr/apps/sandbox/node_modules'
at Object.readdirSync (fs.js:854:3)
at Object.fs.readdirSync (electron/js2c/asar.js:621:39)
at NodeJSFileSystem.readdir (/dev/jscutlery/convoyr/node_modules/@angular/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.js:53:23)
at EntryPointCollector.walkDirectoryForPackages (/dev/jscutlery/convoyr/node_modules/@angular/compiler-cli/ngcc/src/entry_point_finder/entry_point_collector.js:63:56)
at /dev/jscutlery/convoyr/node_modules/@angular/compiler-cli/ngcc/src/entry_point_finder/directory_walker_entry_point_finder.js:62:100
at Object.trackDuration (/dev/jscutlery/convoyr/node_modules/@angular/compiler-cli/ngcc/src/entry_point_finder/utils.js:93:22)
at DirectoryWalkerEntryPointFinder.walkBasePathForPackages (/dev/jscutlery/convoyr/node_modules/@angular/compiler-cli/ngcc/src/entry_point_finder/directory_walker_entry_point_finder.js:62:39)
at DirectoryWalkerEntryPointFinder.findEntryPoints (/dev/jscutlery/convoyr/node_modules/@angular/compiler-cli/ngcc/src/entry_point_finder/directory_walker_entry_point_finder.js:40:30)
at /dev/jscutlery/convoyr/node_modules/@angular/compiler-cli/ngcc/src/execution/analyze_entry_points.js:28:41
at new ClusterMaster (/dev/jscutlery/convoyr/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:45:30)
[Error - 8:18:26 PM] Failed to run ngcc for /dev/jscutlery/convoyr/apps/sandbox/tsconfig.json:
ngcc for /dev/jscutlery/convoyr/apps/sandbox/tsconfig.json returned exit code 1, stderr:
Language service will remain disabled.
๋ฆฌํฌ์งํ ๋ฆฌ์ ๋ํ ๋งํฌ๋ฅผ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. ๋งค์ฐ ์ ์ฉํฉ๋๋ค.
node_modules
๊ฐ ์๋ ๋๋ ํ ๋ฆฌ์ ๋ฌ๋ฆฌ cwd ๊ฐ tsconfig.json
์ ๋๋ ํ ๋ฆฌ๋ก ์๋์ผ๋ก ์ค์ ๋ ๊ฒฝ์ฐ ngcc๊ฐ ์ฒ๋ฆฌํ์ง ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
convoyr/apps/sandbox
์์ ngcc๋ฅผ ์คํํ ๋ ๊ฒ์ ํ ๊ฒ๊ณผ ๋์ผํ ์คํจ๋ฅผ ๋ณด์์ต๋๋ค.
๋ฃจํธ ๋๋ ํ ๋ฆฌ์์ ์คํํ๋ฉด ngcc๊ฐ ์ ๋๋ก ์๋ํฉ๋๋ค.
๋ํ ngcc๊ฐ ์คํจํ๋๋ผ๋ ์ธ์ด ์๋น์ค๋ฅผ ์๊ตฌ์ ์ผ๋ก ๋นํ์ฑํํด์๋ ์ ๋ฉ๋๋ค. ์ด๊ฒ์ ์ถ์ ํ๊ธฐ ์ํด #1041์ ๋ง๋ค์์ต๋๋ค.
๋์ ์ค ์์์ด์ ๊ธฐ๋ป!
github.com/angular/angular์์ ๋ฌธ์ ๋ฅผ ์ด์ด์ผ ํ๋์?
@yjaaidi ์ฌ๊ธฐ์์ ๋ฌธ์ ๋ ์ถฉ๋ถํฉ๋๋ค. ๊ฐ๋/๊ฐ๋์์ ์ด ํ์๊ฐ ์์ต๋๋ค! ๋ ๋ฆฌํฌ์งํ ๋ฆฌ ๊ฐ์ ์ธ์ด ์๋น์ค ๋ณด๊ณ ์๋ฅผ ํตํฉํ๋ ๋ฐฉ๋ฒ/์ฌ๋ถ๋ฅผ ์์ง ๊ฒฐ์ ํ์ง ์์์ผ๋ฏ๋ก ์ง๊ธ์ ๋ ๋ค ์ฃผ์ํ๊ณ ์์ต๋๋ค.
Keen๊ณผ ๋๋ ์ด์ ์ด๊ฒ์ ๋ํด ์ง์ ์ด๋ฃจ์๊ณ ์ฐ๊ฒฐ๋ ์ ์ฅ์๋ฅผ ์ฌ์ฉํ์ฌ 4๊ฐ์ ๊ฐ๋ณ ๋ฌธ์ ์ ๋ํ ๊ทผ๋ณธ ์์ธ์ ์ถ์ ํ ์ ์์์ต๋๋ค. ์์ ์ฌํญ์ด ๋ณํฉ๋์ด 1์์ ๋ค์ ๋ฆด๋ฆฌ์ค๋ฅผ ์ค๋นํด์ผ ํฉ๋๋ค. ์ ๊ณ ๊ฐ์ฌํฉ๋๋ค!
๊ทธ๊ฒ์ ๋นจ๋๋ค. ์ ํ์ด!
๋ด๊ฐ ๋์ธ ์ ์๋์ง ์๋ ค์ฃผ์ธ์.
์ด ๋ฌธ์ ๋ ํ๋์ด ์์ด ์๋์ผ๋ก ์ ๊ฒผ์ต๋๋ค.
์ ์ฌํ๊ฑฐ๋ ๊ด๋ จ๋ ๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ฉด ์ ๋ฌธ์ ๋ฅผ ์ ์ถํ์ญ์์ค.
์๋ ๋ํ ์ ๊ธ ์ ์ฑ ์ ๋ํด ์์ธํ ์์๋ณด์ธ์.
_์ด ์์ ์ ๋ด์ ์ํด ์๋์ผ๋ก ์ํ๋์์ต๋๋ค._
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@yjaaidi ์ฌ๊ธฐ์์ ๋ฌธ์ ๋ ์ถฉ๋ถํฉ๋๋ค. ๊ฐ๋/๊ฐ๋์์ ์ด ํ์๊ฐ ์์ต๋๋ค! ๋ ๋ฆฌํฌ์งํ ๋ฆฌ ๊ฐ์ ์ธ์ด ์๋น์ค ๋ณด๊ณ ์๋ฅผ ํตํฉํ๋ ๋ฐฉ๋ฒ/์ฌ๋ถ๋ฅผ ์์ง ๊ฒฐ์ ํ์ง ์์์ผ๋ฏ๋ก ์ง๊ธ์ ๋ ๋ค ์ฃผ์ํ๊ณ ์์ต๋๋ค.
Keen๊ณผ ๋๋ ์ด์ ์ด๊ฒ์ ๋ํด ์ง์ ์ด๋ฃจ์๊ณ ์ฐ๊ฒฐ๋ ์ ์ฅ์๋ฅผ ์ฌ์ฉํ์ฌ 4๊ฐ์ ๊ฐ๋ณ ๋ฌธ์ ์ ๋ํ ๊ทผ๋ณธ ์์ธ์ ์ถ์ ํ ์ ์์์ต๋๋ค. ์์ ์ฌํญ์ด ๋ณํฉ๋์ด 1์์ ๋ค์ ๋ฆด๋ฆฌ์ค๋ฅผ ์ค๋นํด์ผ ํฉ๋๋ค. ์ ๊ณ ๊ฐ์ฌํฉ๋๋ค!