๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ๋ฐฉ๋ฒ์ ์๊ณ ์๋ค๋ฉด ๋์ pull ์์ฒญ์ ํ์ธ์.
@types/jamine
ํจํค์ง๋ฅผ ์ฌ์ฉํด ๋ณด์๋๋ฐ ๋ฌธ์ ๊ฐ ์์์ต๋๋ค( 2.8.11)๋ค์๊ณผ ๊ฐ์ ์ค๋ฅ๊ฐ ์์ต๋๋ค.
Error: node_modules/@types/jasmine/index.d.ts(138,47): error TS1005: ';' expected.
node_modules/@types/jasmine/index.d.ts(138,90): error TS1005: '(' expected.
node_modules/@types/jasmine/index.d.ts(138,104): error TS1005: ']' expected.
node_modules/@types/jasmine/index.d.ts(138,112): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,113): error TS1136: Property assignment expected.
node_modules/@types/jasmine/index.d.ts(138,121): error TS1005: ')' expected.
node_modules/@types/jasmine/index.d.ts(138,147): error TS1005: '(' expected.
node_modules/@types/jasmine/index.d.ts(138,162): error TS1005: ']' expected.
node_modules/@types/jasmine/index.d.ts(138,163): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,164): error TS1136: Property assignment expected.
node_modules/@types/jasmine/index.d.ts(138,165): error TS1136: Property assignment expected.
node_modules/@types/jasmine/index.d.ts(138,179): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,183): error TS1005: ':' expected.
node_modules/@types/jasmine/index.d.ts(138,208): error TS1005: '{' expected.
node_modules/@types/jasmine/index.d.ts(138,217): error TS1005: ':' expected.
node_modules/@types/jasmine/index.d.ts(138,222): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,227): error TS1005: ':' expected.
node_modules/@types/jasmine/index.d.ts(138,228): error TS1109: Expression expected.
node_modules/@types/jasmine/index.d.ts(138,230): error TS1005: ')' expected.
@armanio123
@stefdelec ์ด๋ค typescript ๋ฒ์ ์ ์ฌ์ฉํ๊ณ ์์ต๋๊น? ์ด ํ์ดํ ํจํค์ง๋ TS 2.8+์ฉ์ ๋๋ค. ์ต์ TS์์ ํด๋น ์ค๋ฅ๊ฐ ๋ฐ์ํ์ง ์์ต๋๋ค.
์ด ๋ฒ์ ์์๋ ์๋ํ์ง ์์์ผ ํฉ๋๊น?
์ค๋ง. ํจํค์ง ์์ฒด ์๋ TS 2.8+์ฉ์ด๋ผ๊ณ ๋์ ์์ผ๋ฉฐ 138
๋ผ์ธ์ ์ฌ์ฉ๋ ๊ตฌ๋ฌธ์ ์ผ๋ถ๋ TS 2.7(์ฆ, ์์ ์ด๋ฆ ์์ฑ ) ๋ฐ TS 2.8(์ฆ, ์กฐ๊ฑด๋ถ ์ ํ )์์ ์ฒ์ ๋์
๋์์ต๋๋ค.
TS 2.6.2๋ ๊ฝค ์ค๋๋์์ผ๋ฉฐ ์ต์ ๋ฒ์ ์ TS๋ 3.1.6์ ๋๋ค.
๋๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ๋ ๋์ ๋ฒ์ ์ typescript๋ฅผ ์ฌ์ฉํ๋ ค๊ณ ํ ๋ ๋ค๋ฅธ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
@saurabhsharmaui ์ ํํ ์ด๋ค TS ๋ฒ์ ์ ์๋ํ๊ณ ์์ผ๋ฉฐ ์ด๋ค ์ข ๋ฅ์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๊น?
ํ์ฌ "typescript": "~2.3.4" ๋ฐ "@types/jasmine": "~2.8.1"์ ์ฌ์ฉํ๊ณ ์์ผ๋ฉฐ ์ด ์กฐํฉ์ ์ฌ์ฉํ๋ฉด ์ค๋ฅ๊ฐ ๋ฐ์ํ์ง๋ง ์ด์ ๊น์ง ๋์ผํ ์์
์ด ์ ๋๋ก ์๋ํ์ต๋๋ค.
์ด์ ๊ทํ์ ์๊ฒฌ์ ๋ฐ๋ผ ์์ ๋ฒ์ ์ ์ฌ์ฉํ๋ ค๊ณ ์๋ํ์ง๋ง npm ์ค์น์์ ์คํจํ์ต๋๋ค.
npm WARN optional ๊ฑด๋๋ฐ๊ธฐ ์คํจ ์ ํ์ ์ข
์์ฑ /chokidar/fsevents:
npm WARN notsup ์ด์ ์ฒด์ ๋๋ ์ํคํ ์ฒ์ ํธํ๋์ง ์์: [email protected]
npm WARN optional ๊ฑด๋๋ฐ๊ธฐ ์คํจ ์ ํ์ ์ข ์์ฑ /live-server/chokidar/fsevents:
npm WARN notsup ์ด์ ์ฒด์ ๋๋ ์ํคํ ์ฒ์ ํธํ๋์ง ์์: [email protected]
npm WARN optional ๊ฑด๋๋ฐ๊ธฐ ์คํจ ์ ํ์ ์ข ์์ฑ /browser-sync/chokidar/fsevents:
npm WARN notsup ์ด์ ์ฒด์ ๋๋ ์ํคํ ์ฒ์ ํธํ๋์ง ์์: [email protected]
npm WARN optional ๊ฑด๋๋ฐ๊ธฐ ์คํจ ์ ํ์ ์ข ์์ฑ /gulp-watch/chokidar/fsevents:
npm WARN notsup ์ด์ ์ฒด์ ๋๋ ์ํคํ ์ฒ์ ํธํ๋์ง ์์: [email protected]
npm WARN optional ๊ฑด๋๋ฐ๊ธฐ ์คํจ ์ ํ์ ์ข ์์ฑ /karma/chokidar/fsevents:
npm WARN notsup ์ด์ ์ฒด์ ๋๋ ์ํคํ ์ฒ์ ํธํ๋์ง ์์: [email protected]
npm ๊ฒฝ๊ณ [email protected] ์๋ @angular/common@^2.3.0์ ํผ์ด๊ฐ ํ์ํ์ง๋ง ์๋ฌด ๊ฒ๋ ์ค์น๋์ง ์์์ต๋๋ค.
npm ๊ฒฝ๊ณ [email protected] ์๋ @angular/core@^2.3.0์ ํผ์ด๊ฐ ํ์ํ์ง๋ง ์๋ฌด ๊ฒ๋ ์ค์น๋์ง ์์์ต๋๋ค.
npm WARN @angular/ [email protected] ์๋
npm ์ค๋ฅ! ๋ฆฌ๋ ์ค 4.4.121-92.85-๊ธฐ๋ณธ
npm ์ค๋ฅ! argv "/opt/JE2A1/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/NodeJS6.5.0/bin/node" "/opt/JE2A1/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/NodeJS6 .5.0/bin/npm" "์ค์น"
npm ์ค๋ฅ! ๋ ธ๋ v6.5.0
npm ์ค๋ฅ! npm v3.10.3
npm ์ค๋ฅ! ๊ฒฝ๋ก /home/je2adm/.npm/content-type/1.0.4/package.tgz.1017518879
npm ์ค๋ฅ! ์ฝ๋ ENOENT
npm ์ค๋ฅ! ์ค๋ฅ ๋ฒํธ -2
npm ์ค๋ฅ! ์์คํ ํธ์ถ ์ด๋ฆ ๋ฐ๊พธ๊ธฐ
npm ์ค๋ฅ! enoent ENOENT: ํด๋น ํ์ผ์ด๋ ๋๋ ํ ๋ฆฌ๊ฐ ์์ต๋๋ค. ์ด๋ฆ์ '/home/je2adm/.npm/content-type/1.0.4/package.tgz.1017518879' -> '/home/je2adm/.npm/content-type/1.0์ผ๋ก ๋ฐ๊พธ์ธ์. 4/ํจํค์ง.tgz'
npm ์ค๋ฅ! enoent ENOENT: ํด๋น ํ์ผ์ด๋ ๋๋ ํ ๋ฆฌ๊ฐ ์์ต๋๋ค. ์ด๋ฆ์ '/home/je2adm/.npm/content-type/1.0.4/package.tgz.1017518879' -> '/home/je2adm/.npm/content-type/1.0์ผ๋ก ๋ฐ๊พธ์ธ์. 4/ํจํค์ง.tgz'
npm ์ค๋ฅ! enoent ์ด๊ฒ์ npm ์์ฒด์ ๋ฌธ์ ๊ฐ ์๋ ๊ฐ๋ฅ์ฑ์ด ํฝ๋๋ค.
npm ์ค๋ฅ! enoent ๋ฐ npm์ด ํ์ผ์ ์ฐพ์ ์ ์๋ ๊ฒ๊ณผ ๊ด๋ จ์ด ์์ต๋๋ค.
npm ์ค๋ฅ! ์๋ ธ์ํธ
jenkins์ npm ์ค์น์ ๋ฌธ์ ๊ฐ ์๋ ๊ฒ ๊ฐ์ต๋๋ค. ๋น์ทํ ๋ฌธ์ ๊ฐ ์ด์ ์(์: here ๋๋ here ) ๋ณด๊ณ ๋์์ผ๋ฉฐ typescript์ ์ง์ ์ฐ๊ฒฐ๋์ง ์์์ ์ ์์ต๋๋ค. ์ ์๋ ์์ ์ฌํญ ์ค ํ๋๋ npm์ ์์ ํ ๋ค์ ์ค์นํ๋ ๊ฒ์ ๋๋ค.
ํ๋ก์ ํธ์ ๋ํด TS๋ฅผ ์ ์ญ์ผ๋ก ์ค์นํฉ๋๊น ์๋๋ฉด ๋ก์ปฌ๋ก ์ค์นํฉ๋๊น? node_modules
๋ฐ package-lock.json
, npm ์บ์ ์ง์ฐ๊ธฐ( npm cache clean --force
) ๋ฐ ์ข
์์ฑ ์ฌ์ค์น๋ฅผ ์๋ํ์ต๋๊น?
์๋ ํ์ธ์ @burtek ์ง์ํด ์ฃผ์ ์ ๋๋จํ ๊ฐ์ฌํฉ๋๋ค. ๋ฒ์ ๊ธฐ๋ก์ ํ์ธํ๋๋ฐ ์ด์ ๋ณ๊ฒฝ ์ฌํญ์ผ๋ก ์ธํด ์ ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธ๋ ๊ฒ์ ์ ์ ์์ต๋๋ค. ๋๋ ๋ค์ ๋์๊ฐ์ 2.8.9๋ก ์ ์๋ํ๋๋ก ๋ณ๊ฒฝํ์ต๋๋ค.
@saurabhsharmaui ๋์์ด ๋ ์ ์์ด์ ๊ธฐ์ฉ๋๋ค.
@stefdelec ์ด ์๋ํ๋๋ก ํ ์ ์์์ต๋๊น?
์๋ ํ์ธ์. ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. typescript: 2.9.2 ๋ฐ @types/jasmine: 2.8.9. ๊ทธ๊ฒ์ ๊ณ ์น ๋ฐฉ๋ฒ์ด ์์ต๋๋ค. ์์ ๋ชจ๋ ๊ฒ์ ์๋ํ์ง๋ง ์๋ฌด ๊ฒ๋ ๋์์ด๋์ง ์์ต๋๋ค.
์ง์ฅ์์ ๊ฐ์ ์ค๋ฅ๊ฐ ์์ต๋๋ค.
๊ธฐ๋ณธ ํ๋ก์ ํธ์ ๋ํด ์์ฑ๋ ํ
ํ๋ฆฟ์ ์์
์ค์
๋๋ค. ๊ทธ๋์ ์๋ก์ด ํ๋ก์ ํธ๊ฐ ์ค๋ ๊นจ์ง๊ณ ์์ง๋ง ์ด์ ๋ ์๋๋๋ค.
๋ด package.json์ ์ถ์ถ
...
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.8",
"@angular/cli": "~6.0.8",
"@angular/compiler-cli": "^6.0.3",
"@angular/language-service": "^6.0.3",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
...
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
...
"ts-node": "~5.0.1",
"tslint": "~5.9.1",
"typescript": "~2.7.2"
},
...
@vnazarchukmob ๊ธ๋ก๋ฒ ๋ฐ ๋ก์ปฌ๋ก typescript๋ฅผ ์ค์นํ๊ณ ๊ทธ ์ค ํ๋๊ฐ 2.8 ๋ฏธ๋ง์ผ ์ ์์ต๋๊น?
@mowgliLab ์์์ ์ธ๊ธํ๋ฏ์ด @types/jasmine
๋ TS 2.8+์ฉ์ด๊ณ ์์ง TS 2.7.x๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. typescript
๋ฅผ 2.8.0
์ด์์ผ๋ก ์
๊ทธ๋ ์ด๋ํฉ๋๋ค.
@mowgliLab ๋ฌธ์ ๋ TS 2.8์ด ํ์ํ ํ์ฌ ๋ฒ์ 2.8.11
์ด ~2.8.6
semver๋ฅผ ์ถฉ์กฑํ๋ฏ๋ก ~2.8.6
์ข
์์ฑ์ด ์๋ ํ
ํ๋ฆฟ์์ npm install
๋ฅผ ์คํํ๋ ๋์ , ๋ฒ์ 2.8.11
์ด ์ค์น๋ฉ๋๋ค. ์ด์ ํ๋ก์ ํธ( @types/jasmine
์ ๋ฎ์ ๋ฒ์ ์ด ์ค์น๋จ)์์ ์๋ํ์ ์ ์์ง๋ง TS 2.7๊ณผ ํธํ๋์ง ์๋ 2.8.11 ๋ฒ์ ์ ๊ฐ์ ธ์ค๊ธฐ ๋๋ฌธ์ ํ
ํ๋ฆฟ์ผ๋ก ์ ํ๋ก์ ํธ๋ฅผ ๋ง๋๋ ๊ฒ์ ์ด์ ์ค๋จ๋์์ต๋๋ค. 2. ์ต์ํ 2.8.x ๋ถ๊ธฐ์ TS๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด ์ฌ์ฉํ๋ ํ
ํ๋ฆฟ์ ์
๋ฐ์ดํธํด์ผ ํฉ๋๋ค(2.7.x์ ๋นํด ๋ง์ ์๋ก์ด ๊ธฐ๋ฅ, ๊ฐ์ ์ฌํญ ๋ฐ ์์ ์ฌํญ์ด ํฌํจ๋์ด ์์ผ๋ฏ๋ก 3.1.x ๋ถ๊ธฐ์ ์ต์ TS๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ์ข์ต๋๋ค)
@burtek ์, ๋ฎ์ ๋ฒ์ 2.3.4๋ก ์ ์ธ๊ณ์ ์ผ๋ก ์ค์น๋์์ต๋๋ค. 3.1.6์ผ๋ก ์ ๊ทธ๋ ์ด๋ํ์ต๋๋ค. ํ์ง๋ง ๋์์ด ๋์ง ์๋๋ค
@vnazarchukmob ์ ํ์ธํ๊ธฐ ์ํด ์ ์ธ๊ณ์ ์ผ๋ก TS 3.1.6์, TS 2.9.2๋ฅผ ๋ก์ปฌ๋ก, @types/jasmine 2.8.9๋ฅผ ๋ก์ปฌ๋ก ์ค์นํ์ผ๋ฉฐ ์ฒซ ๋ฒ์งธ ๊ฒ์๋ฌผ์์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค. ๊ทธ ๋ง์ต๋๊น?
์๊ฒ ์ต๋๋ค. ์ ํ๋ก์ ํธ์ ๋ํ ์
๊ทธ๋ ์ด๋๊ฐ ๊ด์ฐฎ์์ง ํ์ธํ๊ฒ ์ต๋๋ค.
typescript 3.1.6์ผ๋ก ํ
์คํธํ์ผ๋ฉฐ ์๋ํฉ๋๋ค.
@burtek ๊ฐ์ฌํฉ๋๋ค.
@mowgliLab ๋์๋๋ฆด ์ ์์ด์ ๊ธฐ์ฉ๋๋ค
@burtek ๋ต
๋ง์ง๋ง์ผ๋ก ์๊ฐ๋๋ ๊ฒ์ node_modules
๋ฅผ ๋ค์ ์ค์นํ๋ ๊ฒ์ด์ง๋ง ๋์์ด ๋ ์ง ์ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค. ์๊ฐ์ด ๋๋ค์ ๐ข
@armanio123 ,
๊ฐ์ ๋ฌธ์ , ์ด์ ์์๋์์ต๋๋ค.
@r3hxn ๋ํ
@r3hxn ๋ํ
๊ฐ์ฌํฉ๋๋ค. ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ์ค์ ๋๋ค. ๋ฌธ์ ๋ Jenkins ํ์ดํ๋ผ์ธ์๋ง ๋ํ๋๋ ๊ฒ ๊ฐ์ต๋๋ค.
@r3hxn typescript ๋ฒ์ ์ ๋ณ๊ฒฝํ์ง ์์ผ๋ ค๋ฉด @type/jasmine ๋ฒ์ ์ 2.8.9๋ก ๋ณ๊ฒฝํ๋ฉด ๋ฉ๋๋ค. ์ ์์ ์ผ๋ก ์๋ํฉ๋๋ค. ์ฌ๊ธฐ์ ๋ฌธ์ ๋ ๋ ๋์ ๋ฒ์ ์ typescript๊ฐ ํ์ํ @type/jasmine์ ์ ๋ฆด๋ฆฌ์ค์ ์์ต๋๋ค.
๋์์ด ๋๋ @saurabhsharmaui ๊ฐ์ฌํฉ๋๋ค.
@r3hxn ๋์๋๋ฆด ์ ์์ด์ ๊ธฐ์ฉ๋๋ค.
๋๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์๊ณ typescript๋ฅผ ์ต์ ๋์๋ง๋ก ์
๊ทธ๋ ์ด๋ํ์ต๋๋ค.
๋ฌธ์ ๋ TS 2.7.2 AFAIK๋ฅผ ์ฌ์ฉํ๋ Angular 6์ด๋ฏ๋ก ng new
๋ฒ์ ~6.0.0์์ ๋ง๋ ๋ชจ๋ ์ ์ฑ์ ์ด ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
@r3hxn ๋ํ
๊ฐ์ฌํฉ๋๋ค. ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ์ค์ ๋๋ค. ๋ฌธ์ ๋ Jenkins ํ์ดํ๋ผ์ธ์๋ง ๋ํ๋๋ ๊ฒ ๊ฐ์ต๋๋ค.
์ฐ๋ฆฌ๋ ๋๊ฐ์ ์ผ์ ๊ฒช๊ณ ์์ต๋๋ค. ๊ฐ๋ฐ ๋จธ์ ์์๋ ์๋ํ์ง๋ง Jenkins์์๋ ์๋ํ์ง ์์ต๋๋ค.
์ต์ TS๋ก ์ด๋ํ๋ ค๋ ๋น์ ์ ๋ฐ๋์ ์ดํดํ์ง๋ง, ๋ง์ด๋ ๋ฆด๋ฆฌ์ค์์ ์ํํ๋ ๊ฒ์ ๋ง์ ์ฌ๋๋ค์ ๋ง์น ๊ฒ์ ๋๋ค.
์ฐธ๊ณ ๋ก ์ด๋ฌํ ์ ํ์ _require_ TS 2.8+๋ก ์
๊ทธ๋ ์ด๋ํ๋ ๊ฒ์ ๋ถ ๋ฆด๋ฆฌ์ค๊ฐ ์๋๋๋ค. ์ด๋ก ์ธํด ์ด์ ์ด์ ์ ํ/์ฌ์ค๋ฏผ ๋ฒ์ ์ ๊ณ ์ ํด์ผ ํ๋ ๋ง์ ํ๋ก์ ํธ๊ฐ ์ค๋จ๋์์ต๋๋ค.
์ด๊ฒ์ ์ฃผ์ ๋ณ๊ฒฝ ์ฌํญ์ด๋ฉฐ ์๋ก์ด ์ฃผ์ ๋ฒ์ ๋ฒํธ์ฌ์ผ ํฉ๋๋ค ๐ข
2.8.3
๊ณ ์ ํ๊ณ 2.5.3์ ๋์ ์ ์๋ ํ๋ก์ ํธ์ TS๋ฅผ ๋จ๊ฒจ๋๋ ๊ฒ์ด ํจ๊ณผ๊ฐ ์์์ต๋๋ค.
@types/jasmine์ 2.8.8๋ก, typescript๋ฅผ 2.6.2๋ก ํ๋ฉด ํจ๊ณผ์ ์ด์์ต๋๋ค.
"@types/jasmine": "2.8.3" ์ด์ ๊ณผ ๋์ผํ ์ ํ ์คํฌ๋ฆฝํธ๊ฐ ๋๋ฅผ ์ํด ํธ๋ฆญ์ ์ํํ์ต๋๋ค.
@MarkPieszak ๊ฐ์ฌ
"@types/jasmine": "2.8.6" & "typescript": "2.7.2"๊ฐ ์๋ํ์ต๋๋ค.
๋ฌธ์ ๋ "@types/jasmine": "~2.8.6" - > 2.8.11๋ก ์
๋ฐ์ดํธ๋๊ณ typescript๊ฐ 2.7.2๋ก ํธํ๋์ง ์์ต๋๋ค(3.+ ํ์).
"typescript": "^3.1.6" ๋ฐ "@types/jasmine": "^2.8.11" ์ ๋ฐ์ดํธ ํ ๋น๋๊ฐ tfs ๋น๋ ์๋ฒ์์ ์ฑ๊ณตํ์ต๋๋ค.
์ฐ๋ฆฌ๋ ๋ํ ์ง๋ ๋ฉฐ์น ๋์ ์ด๊ฒ์ ๋ํด ๋ฌผ์์ต๋๋ค.
"@types/jasmine": "^2.8.8",
"typescript": "~2.7.2",
2.8.8๊ณผ 2.8.9๊ฐ ์๋ก ๋ค๋ฅธ TS ๋ฒ์ ์ ์ง์ํ๋ฉด ๋งค์ฐ ํผ๋์ค๋ฌ์์ง๋๋ค... ๋ง์์?!
์ฐ๋ฆฌ๋ ๋ํ ์ด ๋ฌธ์ ์ ๋ถ๋ช์ณค๊ณ , ์๋ก์ด ํ์ ์คํฌ๋ฆฝํธ ๋ฒ์ ์ ์์กดํ๋ ๊ฒ์ (semver์ ๋ฐ๋ฅด๋ฉด) ํจํค์ง ๋ฒ์ ์ด ๋ฐ์ ํจ์น ๋ฒ์ ๋์ 3.XX๋ก ์ถฉ๋ํด์ผ ํจ์ ์๋ฏธํ๋ ์ฃผ์ ๋ณ๊ฒฝ์ผ๋ก ๊ฐ์ฃผ๋์ด์ผ ํ๋ค๊ณ ๋งํด์ผ ํฉ๋๋ค. ์ด๊ฒ์ ์ฉ์ํ ์ ์๋ ์ค๋ฅ๋ก ๋ง๋๋ ๊ฒ์ ํผํ ์ ์์๋ ์ฌ๋๋ค์๊ฒ ๋ง์ ๋ฌธ์ ๋ฅผ ์ผ์ผํต๋๋ค.
์์์ ์ ์ํ ๋ชจ๋ ์์
์ ์ํํ์ง๋ง ์๋ํ์ง ์๋ ๊ฒ๊ณผ ๋์ผํ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
์ด๋ป๊ฒ ํด์ผํ ์ง ์์๋ ๋ถ...
์ด์ ๋ถํฐ ์ด ๋ฌธ์ ์ ๋ถ๋ช์ณค๊ณ ์ด ์ค๋ ๋๊ฐ ์ต๊ทผ์ ์๊ธฐ ๋๋ฌธ์ ์์์ ์ธ๊ธํ ๋ช ๊ฐ์ง ๋ฒ์ ๋ณ๊ฒฝ ์ฌํญ์ด ์๋ ๊ฒ์ผ๋ก ๊ฐ์ ํ์ต๋๋ค. ๋๋ ๊ทธ๋ฌ๋, ๋๋ ์ต๊ทผ์ TS ๋๋ ์ฌ์ค๋ฏผ ์ ํ์ ํจํค์ง๋ฅผ ์ ๋ฐ์ดํธํ์ง ์์๋ค๋ฉด, ๋์ผํ ๋ฌธ์ ๊ฐ ์์๋ค. ๊ด์ฐ์ ๋ก์ปฌ์์ npm๊ณผ ๊ด๋ จ๋ ๋ฌธ์ ์์ผ๋ฏ๋ก ๋ค์์ ์คํํ์ฌ ์ ๋ ฌํ๊ณ ์ค๋ฅ๊ฐ ์ฌ๋ผ์ก์ต๋๋ค.
npm cache verify
typescript๋ฅผ 3.1.6์ผ๋ก, jasmine์ 3.3.0์ผ๋ก ์ ๋ฐ์ดํธํ์ฌ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค.
์ค๋ง. ํจํค์ง ์์ฒด ์๋ TS 2.8+์ฉ์ด๋ผ๊ณ ๋์ ์์ผ๋ฉฐ
138
๋ผ์ธ์ ์ฌ์ฉ๋ ๊ตฌ๋ฌธ์ ์ผ๋ถ๋ TS 2.7(์ฆ, ์์ ์ด๋ฆ ์์ฑ ) ๋ฐ TS 2.8(์ฆ, ์กฐ๊ฑด๋ถ ์ ํ )์์ ์ฒ์ ๋์ ๋์์ต๋๋ค.TS 2.6.2๋ ๊ฝค ์ค๋๋์์ผ๋ฉฐ ์ต์ ๋ฒ์ ์ TS๋ 3.1.6์ ๋๋ค.
@burtek ์๊ฐ์ ๋ด์ด ๋ฌธ์ ๋ฅผ ์๋ณํ๊ณ ์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์ ์ํํ๋ ์์ ์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค. ๋ฌธ์ ๊ฐ ๋ฐ์ํ ๋ ๊ฐ์ฌํ ์ ์๋ ์ผ์ด๋ผ๋ ๊ฒ์ ์๊ณ ์์ต๋๋ค.
์ด์ ๊ฐ์ ์ฃผ์ ๋ณ๊ฒฝ ์ฌํญ์ด ํจ์น ๋ฆด๋ฆฌ์ค ๋ฒ์ ์ ๊ฒ์๋ ๊ฒ์ด ์กฐ๊ธ ๊ฑฑ์ ๋ฉ๋๋ค. TS 2.5+๋ ์ค์ ๋ก ๊ทธ๋ ๊ฒ ์ค๋๋์ง ์์์ผ๋ฉฐ ๋ง์ ํ๋ก์ ํธ์์ ์ด๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. ๋ํ ๋ง์ ํ๋ก์ ํธ์์ "typescript ์ ๊ทธ๋ ์ด๋"์ ๋ํ ์ ํจํ ๊ฒฝ๋ก๊ฐ ์๋๋๋ค. ์ฐ๋ฆฌ๋ ์ข ์ข ์ฐ๋ฆฌ์ ์์ ์ ์ํด ์ ์ฝ์ ๋ฐ๊ณ ๊ทธ์ ๊ฐ์ ๊ฒ์ ๋ฌด๊ฑฐ์ด ํ๊ท ํ ์คํธ๊ฐ ํ์ํฉ๋๋ค. ๊ฒฝ๊ณ ์์ด ๊ฐ์๊ธฐ ๋น๋๊ฐ ์ค๋จ๋๋ ๊ฒ์ ๋นํน์ค๋ฌ์ด ์ผ์ ๋๋ค.
semver์ ๋ํ ๋์ ์ดํด๋ ์ด์ ๋ฒ์ ๊ณผ์ ํธํ์ฑ์ ๊นจ๋จ๋ฆฌ๋ ๋ชจ๋ ๊ฒ์ด ์ฃผ ๋ฒ์ ์ผ๋ก ์ทจ๊ธ๋์ด์ผ ํ๋ค๋ ๊ฒ์ ๋๋ค. ์ฌ๊ธฐ์์ ๊ทธ ๊ด์ต์ ์งํค์ง ์์ ์ด์ ๋ ๋ฌด์์ ๋๊น? ์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์ ํด๋น ๊ท์น์ ๋ฐ๋ฅด์ง ์์ ๊ฒ์ผ๋ก ์์ํด์ผ ํฉ๋๊น?
๋ชจ๋ ๋์์ ๋ค์ ํ ๋ฒ ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
@jeffskelton3 ์ด ๋ณ๊ฒฝ ์์ ์ ์ํํ ์ฌ๋๋ ์ ๊ฐ ์๋๊ณ ๋ณํฉํ์ฌ ๊ฒ์ํ ๊ฒ๋ ์๋๋๋ค. ๋๋ ๋ฐฉ๊ธ ๋ค๋ฅธ ๋ฌธ์ ๋ฅผ ์ฐพ์ ์์ ์ด๊ฒ์ ๋ํ ๊ฐ๋ฅํ ์ด์ ๋ฅผ ์ฐพ์์ต๋๋ค. ๋๋ ๋ํ์ด ํจํค์ง ์์ฒด์ ์๋ฌด ๊ด๋ จ์ด ์์ต๋๋ค. ์ด๋ฌํ ์ง๋ฌธ๊ณผ ๋ฉ๋ชจ๋ ์ด ๋ณ๊ฒฝ ์ฌํญ์ ๋์ ํ ์ฌ๋๊ณผ ํ์คํ ์ ํ์ด ์ง์ ๋ ์ ์ง ๊ด๋ฆฌ์์๊ฒ ๋ฌธ์ํด์ผ ํฉ๋๋ค.
์ฆ, ๋๋ ์ด ์ค๋ ๋์์ ๋งํ ๋ชจ๋ ๊ฒ์ ์ ์ ์ผ๋ก ๋์ํฉ๋๋ค. ๋ด ์๋ชป๋ ๋ด ์ฑ ์๋ ์๋๋๋ค. ์ต๋ํ JS ์ปค๋ฎค๋ํฐ์ ๋์์ด ๋๋๋ก ๋ ธ๋ ฅํ์ต๋๋ค.
@burtek ์ ์ง๋ฌธ์ ์๋ชป๋ ์ฌ๋์๊ฒ ์ง์ํ ๊ฒ์ ๋ํด ์ฌ๊ณผ๋๋ฆฝ๋๋ค(๋น์ ์ด ์ด ์ฝ๋ ๊ธฐ๋ฐ์ ๊ธฐ์ฌ์๋ผ๋ ๊ฒ์ ์๋ชป ์ฝ์์ ๊ฒ์ ๋๋ค!). ๋ด ๊ฐ์ ์ ๋์ํ๊ณ ๋ชจ๋ ์ฌ๋์ด ์ด ๋ฌธ์ ์ ์์ธ์ ์ถ์ ํ๋ ๋ฐ ๋์์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
@jeffskelton3 ๊ฑฑ์ ๋ง
์ดํ ์ ์ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ๋ด ํ๋ก์ ํธ package.json์์ ๋ณ๊ฒฝ๋ ์ฌํญ์ด ์์ต๋๋ค. ๊ฐ์๊ธฐ ์ค๋ฅ์ ํจ๊ป ํจํค์ง์ ์คํจํฉ๋๋ค.
์ ํ 'ArrayLikeMatchers'์ 'toContainEqual' ์์ฑ์ด ์์ต๋๋ค.
์ ํ 'ArrayLikeMatchers'์ 'toContainEqual' ์์ฑ์ด ์์ต๋๋ค.
์ดํ ๋์ ๊ตฌ๊ธ๋งํ ๋ค์ ์ฌ๊ธฐ์ ์์ง๋ง ์ฌ์ ํ ํด๊ฒฐ๋์ง ์์์ต๋๋ค.
๋ ๋ค๋ฅธ ์ฐธ์กฐ ์ง์ ์ผ๋ก, NativeScript๋ ํ์ฌ TypeScript ~2.7.2๋ฅผ ๋์์ผ๋ก ํฉ๋๋ค. NativeScript-CLI๋ฅผ ์ฌ์ฉํ์ฌ ํ๋ก์ ํธ๋ฅผ ์ค์ ํ๋ฉด Jasmine์ด ๊ธฐ๋ณธ ํ ์คํธ ํ๋ ์์ํฌ๋ก ๊ธฐ๋ณธ ์ค์ ๋ฉ๋๋ค. ๋ฐ๋ผ์ ๋ถ ๋ฒ์ ์ ๋ฐ์ดํธ๊ฐ ๋ค๋ฅธ ํจํค์ง์ ๋ํ ์ ๋ฐ์ดํธ๋ ํ์๋ก ํ์ง ์๋๋ก ํ๊ธฐ ์ํ ๋ ๋ค๋ฅธ ํฌํ์ ๋๋ค. ๊ฐ์ฌ ํด์!
๋๋ travis ํ๊ฒฝ์์ ์ด ๋ฌธ์ ๋ฅผ ๊ฒช์๊ณ 2.5.38๋ก ๋ณ๊ฒฝํ์ต๋๋ค!
"ng test"๋ฅผ ์คํํ ๋๋ ๋์ผํ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค. node_modules/@types/jasmine/index.d.ts๋ก ์ด๋ํ์ต๋๋ค.
11ํ์ "// TypeScript ๋ฒ์ : 2.8"์ด ํ์๋ฉ๋๋ค.
๊ทธ๋์ ๋๋
C:\my-project-directory> npm install [email protected]
๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค.
์ ๋ ์์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฉ๋๋ค. ๋ค์์ CI ์ถ๋ ฅ์ ๋๋ค.
๋ก์ปฌ์์๋ ์ ์๋ํ์ง๋ง(์์ ์ผ๋ถ ๋ฉ์์ง์์ ์ธ๊ธํ๋ฏ์ด) GitLab CI์์๋ ํ์คํ ๊ณ ์ฅ๋ฌ์ต๋๋ค... ๐ค
06 12 2018 15:34:42.681:ERROR [karma]: Error: node_modules/@types/jasmine/index.d.ts(138,47): error TS1005: ';' expected.
node_modules/@types/jasmine/index.d.ts(138,90): error TS1005: '(' expected.
node_modules/@types/jasmine/index.d.ts(138,104): error TS1005: ']' expected.
node_modules/@types/jasmine/index.d.ts(138,112): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,113): error TS1136: Property assignment expected.
node_modules/@types/jasmine/index.d.ts(138,121): error TS1005: ')' expected.
node_modules/@types/jasmine/index.d.ts(138,147): error TS1005: '(' expected.
node_modules/@types/jasmine/index.d.ts(138,162): error TS1005: ']' expected.
node_modules/@types/jasmine/index.d.ts(138,163): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,164): error TS1136: Property assignment expected.
node_modules/@types/jasmine/index.d.ts(138,165): error TS1136: Property assignment expected.
node_modules/@types/jasmine/index.d.ts(138,179): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,183): error TS1005: ':' expected.
node_modules/@types/jasmine/index.d.ts(138,208): error TS1005: '{' expected.
node_modules/@types/jasmine/index.d.ts(138,217): error TS1005: ':' expected.
node_modules/@types/jasmine/index.d.ts(138,222): error TS1005: ',' expected.
node_modules/@types/jasmine/index.d.ts(138,227): error TS1005: ':' expected.
node_modules/@types/jasmine/index.d.ts(138,228): error TS1109: Expression expected.
node_modules/@types/jasmine/index.d.ts(138,230): error TS1005: ')' expected.
at Compiler.compiler.plugin (/var/www/cadi-front/node_modules/@angular/cli/plugins/karma-webpack-throw-error.js:10:23)
at Compiler.applyPlugins (/var/www/cadi-front/node_modules/tapable/lib/Tapable.js:61:14)
at Watching._done (/var/www/cadi-front/node_modules/webpack/lib/Compiler.js:105:17)
at onCompiled (/var/www/cadi-front/node_modules/webpack/lib/Compiler.js:55:18)
at applyPluginsAsync.err (/var/www/cadi-front/node_modules/webpack/lib/Compiler.js:510:14)
at next (/var/www/cadi-front/node_modules/tapable/lib/Tapable.js:202:11)
at Compiler.<anonymous> (/var/www/cadi-front/node_modules/webpack/lib/CachePlugin.js:78:5)
at Compiler.applyPluginsAsyncSeries (/var/www/cadi-front/node_modules/tapable/lib/Tapable.js:206:13)
at compilation.seal.err (/var/www/cadi-front/node_modules/webpack/lib/Compiler.js:507:11)
at Compilation.applyPluginsAsyncSeries (/var/www/cadi-front/node_modules/tapable/lib/Tapable.js:195:46)
at applyPluginsAsync.err (/var/www/cadi-front/node_modules/webpack/lib/Compilation.js:677:19)
at Compilation.applyPluginsAsyncSeries (/var/www/cadi-front/node_modules/tapable/lib/Tapable.js:195:46)
at applyPluginsAsync.err (/var/www/cadi-front/node_modules/webpack/lib/Compilation.js:668:11)
at Compilation.applyPluginsAsyncSeries (/var/www/cadi-front/node_modules/tapable/lib/Tapable.js:195:46)
at applyPluginsAsync.err (/var/www/cadi-front/node_modules/webpack/lib/Compilation.js:663:10)
at Compilation.applyPluginsAsyncSeries (/var/www/cadi-front/node_modules/tapable/lib/Tapable.js:195:46)
(node:88) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
ํธ์งํ๋ค:
@types/jasmine
๋ฒ์ ์ 2.8.4
๋ก ๊ณ ์ ํ๋๋ฐ ๋ชจ๋ ๊ด์ฐฎ์ ๊ฒ ๊ฐ์ต๋๋ค. ๐ ํ์ดํ์คํฌ๋ฆฝํธ ๋ฒ์ ์ ์
๊ทธ๋ ์ด๋ํ ์ ์์ต๋๋ค.
"@types/jasmine": "2.8.6" & "typescript": "2.7.2"๊ฐ ์๋ํ์ต๋๋ค.
๋ฌธ์ ๋ "@types/jasmine": "~2.8.6" - > 2.8.11๋ก ์ ๋ฐ์ดํธ๋๊ณ typescript๊ฐ 2.7.2๋ก ํธํ๋์ง ์์ต๋๋ค(3.+ ํ์).
์๋์... @angular/[email protected]์๋ typescript@>=2.4.2 <2.7์ ํผ์ด๊ฐ ํ์ํ์ง๋ง ์๋ฌด ๊ฒ๋ ์ค์น๋์ง ์์์ต๋๋ค. ํผ์ด ์ข ์์ฑ์ ์ง์ ์ค์นํด์ผ ํฉ๋๋ค.
ํ์ดํ์คํฌ๋ฆฝํธ๊ฐ 2.7๋ณด๋ค ๋์ ์ ์์ต๋๋ค...
"@types/jasmine": "2.8.6" & "typescript": "2.7.2"๊ฐ ์๋ํ์ต๋๋ค.
๋ฌธ์ ๋ "@types/jasmine": "~2.8.6" - > 2.8.11๋ก ์ ๋ฐ์ดํธ๋๊ณ typescript๊ฐ 2.7.2๋ก ํธํ๋์ง ์์ต๋๋ค(3.+ ํ์).
๋ด Angular 5 ํ๋ก์ ํธ์ ํ์ํ typescript 2.6.x์ ํจ๊ป ์ฌ์ฉํ ์ ์๋๋ก 2.8.9์ ๊ณ ์ ํด์ผ ํ์ต๋๋ค.
@vnazarchukmob ๊ธ๋ก๋ฒ ๋ฐ ๋ก์ปฌ๋ก typescript๋ฅผ ์ค์นํ๊ณ ๊ทธ ์ค ํ๋๊ฐ 2.8 ๋ฏธ๋ง์ผ ์ ์์ต๋๊น?
@mowgliLab ์์์ ์ธ๊ธํ๋ฏ์ด
@types/jasmine
๋ TS 2.8+์ฉ์ด๊ณ ์์ง TS 2.7.x๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.typescript
๋ฅผ2.8.0
์ด์์ผ๋ก ์ ๊ทธ๋ ์ด๋ํฉ๋๋ค.
LGTM~
๋ฒ์ 2.8.8์ [email protected] ์์ ์ ์๋ํ์ง๋ง 2.8.12์์๋ ์๋ํ์ง ์์ต๋๋ค.
ํจ์น ๋ฒ์ ์ด ์ด๋ป๊ฒ ์ด๋ฐ ๋ธ๋ ์ดํน ์ฒด์ธ์ง๋ฅผ ๋์ ํ ์ ์๋์ง ๊ถ๊ธํฉ๋๋ค ๐
"@types/jasmine": "~2.8.6" ๋ฐ "typescript": "^2.8.4"๋ฅผ ์ฌ์ฉํ๋ ์๋ก์ด Angular ์ฑ์์ ์ด ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค. ์์ง ํด๊ฒฐํ์ ๋ถ ๊ณ์ ๊ฐ์?
์์ง ํด๊ฒฐ ๋ฐฉ๋ฒ์ด ์๋์? ๋๊ตฐ๊ฐ ์ต์ข ์๋ฃจ์ ์ ์์ฝํ ์ ์์ต๋๊น? ์๋ก์ด ์ค์น์์ ๋ฌด์์ ํด์ผ ํฉ๋๊น? ๋๋ ์ฝ๊ฐ ๊ธธ์ ์์๋ค.
Mac์์ ์ด ์ค๋ฅ๊ฐ ์๋ ํ๋ก์ ํธ๋ฅผ ํ์ธํ๊ณ Yarn์ ํจํค์ง ๊ด๋ฆฌ์๋ก ์คํํ ๋ ๋ชจ๋ ์ค๋ฅ๊ฐ ์ฌ๋ผ์ก๋ค๋ ๊ฒ์ ์์์ต๋๋ค.
@wluijk ์ถ๊ฐ
{
"typeRoots": [
"./node_modules/@types"
],
"types": ["node"]
}
compilerOptions
@types/node
์ค์น๋์ด ์์ด์ผ ํฉ๋๋ค.
์ฐธ๊ณ ๋ก ์ด๋ฌํ ์ ํ์ _require_ TS 2.8+๋ก ์ ๊ทธ๋ ์ด๋ํ๋ ๊ฒ์ _๋ถ_ ๋ฆด๋ฆฌ์ค๊ฐ ์๋๋๋ค. ์ด๋ก ์ธํด ์ด์ ์ด์ ์ ํ/์ฌ์ค๋ฏผ ๋ฒ์ ์ ๊ณ ์ ํด์ผ ํ๋ ๋ง์ ํ๋ก์ ํธ๊ฐ ์ค๋จ๋์์ต๋๋ค.
์ด๊ฒ์ ์ฃผ์ ๋ณ๊ฒฝ ์ฌํญ์ด๋ฉฐ ์๋ก์ด ์ฃผ์ ๋ฒ์ ๋ฒํธ์ฌ์ผ ํฉ๋๋ค ๐ข
2.8.3
๊ณ ์ ํ๊ณ 2.5.3์ ๋์ ์ ์๋ ํ๋ก์ ํธ์ TS๋ฅผ ๋จ๊ฒจ๋๋ ๊ฒ์ด ํจ๊ณผ๊ฐ ์์์ต๋๋ค.
๋งค๋ ฅ์ฒ๋ผ ์ผํ์ต๋๋ค! ๋ฌด๋ฆฌ์น๊ตฌ ๊ฐ์ฌํฉ๋๋ค
์ฐธ๊ณ ๋ก ์ด๋ฌํ ์ ํ์ _require_ TS 2.8+๋ก ์ ๊ทธ๋ ์ด๋ํ๋ ๊ฒ์ _๋ถ_ ๋ฆด๋ฆฌ์ค๊ฐ ์๋๋๋ค. ์ด๋ก ์ธํด ์ด์ ์ด์ ์ ํ/์ฌ์ค๋ฏผ ๋ฒ์ ์ ๊ณ ์ ํด์ผ ํ๋ ๋ง์ ํ๋ก์ ํธ๊ฐ ์ค๋จ๋์์ต๋๋ค.
์ด๊ฒ์ ์ฃผ์ ๋ณ๊ฒฝ ์ฌํญ์ด๋ฉฐ ์๋ก์ด ์ฃผ์ ๋ฒ์ ๋ฒํธ๊ฐ ์์ด์ผ ํฉ๋๋ค.
2.8.3
๊ณ ์ ํ๊ณ 2.5.3์ ๋์ ์ ์๋ ํ๋ก์ ํธ์ TS๋ฅผ ๋จ๊ฒจ๋๋ ๊ฒ์ด ํจ๊ณผ๊ฐ ์์์ต๋๋ค.
ํจํค์ง json์ "@types/jasmine": "~2.8.3" ํญ๋ชฉ์ด ์์๊ณ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.
๊ธฐ์ธ๊ธฐ๋ฅผ ์ ๊ฑฐํ๊ณ "@types/jasmine": "2.8.3"์ผ๋ก ๋ง๋ค์๊ณ ์๋ํ์ต๋๋ค.
์ฐธ๊ณ : "~2.8.3"์ 2.8.11๋ก ์ ๋ฐ์ดํธ๋์์ต๋๋ค.
@jayvdb
๋ด Angular 5 ํ๋ก์ ํธ์ ํ์ํ typescript 2.6.x์ ํจ๊ป ์ฌ์ฉํ ์ ์๋๋ก 2.8.9์ ๊ณ ์ ํด์ผ ํ์ต๋๋ค.
์, ์๋ํ์ง๋ง ์ด์ ์ฝ์์ ๋ค์๊ณผ ๊ฐ์ ๊ฒฝ๊ณ ๊ฐ ํ์๋ฉ๋๋ค.
angular/[email protected]์๋ typescript@'>=2.4.2 <2.5.0'์ด ํ์ํ์ง๋ง ๋์ 2.6.2๊ฐ ๋ฐ๊ฒฌ๋์์ต๋๋ค.
์ด ๋ฒ์ ์ ์ฌ์ฉํ๋ฉด ์ ์๋์ง ์์ ๋์์ด ๋ฐ์ํ๊ณ ๋ฌธ์ ๋ฅผ ๋๋ฒ๊ทธํ๊ธฐ ์ด๋ ค์ธ ์ ์์ต๋๋ค.
@mieszczans , ์ ๋ typescript 2.6์ด Angular 5 ์ฑ์์ ์๋นํ ์์ ์ ์ด๋ผ๋ ๊ฒ์ ์์์ผ๋ฏ๋ก ๊ทธ ๊ฒฝ๊ณ ๋ฅผ ๋ฌด์ํ์ต๋๋ค. ๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ฉด https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30310#issuecomment -444916003์ ์ธ๊ธ๋ ๋๋ก @types/jasmine
๋ฅผ 2.8.4
์ ๊ณ ์ ํ์ญ์์ค .
์ ๋ง๋ก, ์ด๊ฒ์ SemVer์ ๊ฐํนํ ์๋ฐ์ผ๋ก ๋๋๋ ค์ผ ํฉ๋๋ค.
์๋ ๋ชจ๋,
[email protected] ๋ฐ @types/ jasmine @ ํ์ต๋๋ค.
์ข๋ค
100% ์๋ํฉ๋๋ค.
๊ฐ์ฌ ํด์,
Jasmine 2.8.9์ ํจ๊ป ์๋ํ๋ typescript 2.80
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
"@types/jasmine": "2.8.6" & "typescript": "2.7.2"๊ฐ ์๋ํ์ต๋๋ค.
๋ฌธ์ ๋ "@types/jasmine": "~2.8.6" - > 2.8.11๋ก ์ ๋ฐ์ดํธ๋๊ณ typescript๊ฐ 2.7.2๋ก ํธํ๋์ง ์์ต๋๋ค(3.+ ํ์).