Pim-community-dev: TS2322 : μœ ν˜• 'JQuery<element>'은'JQuery 'μœ ν˜•μ— ν• λ‹Ή ν•  수 μ—†μŠ΅λ‹ˆλ‹€.<htmlelement>'.</htmlelement></element>

에 λ§Œλ“  2020λ…„ 04μ›” 28일  Β·  11μ½”λ©˜νŠΈ  Β·  좜처: akeneo/pim-community-dev

yarn webpack μ‹€ν–‰μ‹œ λ‹€μŒ 였λ₯˜κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€.

tsl] ERROR in /srv/pim/web/bundles/pimdatagrid/js/datafilter/filters-column.ts(285,5)
      TS2322: Type 'JQuery<Element>' is not assignable to type 'JQuery<HTMLElement>'.
  Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 109 more.

이 μ†μ„±μ²˜λŸΌ λ³΄μž…λ‹ˆλ‹€.

public filterList: JQuery<HTMLElement>;

JQuery<Element> 둜 μž…λ ₯ν•΄μ•Όν•©λ‹ˆλ‹€.

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

μ‹œκ°„μ„λ‚΄μ–΄ 문제λ₯Όλ³΄κ³  ν•΄ μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€.

λͺ¨λ“  11 λŒ“κΈ€

akeneo 3.2λ₯Ό μ„€μΉ˜ν•  λ•Œ λ™μΌν•œ λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€.

이것은 μΌμ‹œμ μΈ μˆ˜μ •μΌλΏμž…λ‹ˆλ‹€.

μž„μ‹œ μˆ˜μ •μ€ λ‹€μŒ νŒŒμΌμ„ μ—½λ‹ˆ λ‹€.
web / bundles / pimdatagrid / js / datafilter / filters-column.ts

λ‹€μŒμ—μ„œ ~ 25 행을 λ³€κ²½ν•˜μ‹­μ‹œμ˜€.
public filterList: JQuery<HTMLElement>;

이에:
public filterList: JQuery<Element>;

그런 λ‹€μŒ μ‹€ν–‰ν•˜μ‹­μ‹œμ˜€.
yarn run webpack

v3.2.46κ³Ό λ™μΌν•œ 문제

v3.2.51κ³Ό λ™μΌν•œ 문제

ERROR in /srv/pim/web/bundles/pimdatagrid/js/datafilter/filters-column.ts
./web/bundles/pimdatagrid/js/datafilter/filters-column.ts
[tsl] ERROR in /srv/pim/web/bundles/pimdatagrid/js/datafilter/filters-column.ts(289,5)
      TS2322: Type 'JQuery<Element>' is not assignable to type 'JQuery<HTMLElement>'.
  Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 109 more.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

μ•ˆλ…•ν•˜μ„Έμš” @robingchan ,

μš°λ¦¬λŠ” 그것을 κ³ μΉ  수 μžˆμ§€λ§Œ μ˜€ν”ˆ μ†ŒμŠ€μ΄κΈ° λ•Œλ¬Έμ— PR도 맀우 ν™˜μ˜λ°›μ„ κ²ƒμž…λ‹ˆλ‹€. : wink :

JQuery.find μ„œλͺ…이 방금 λ³€κ²½λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

νŽΈμ§‘ : @types κ΄€λ ¨ PR : https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44051

쒋은 캐치 μΏ μ—”ν‹΄.

잘λͺ»λœ μ›€μ§μž„ Jquery : facepalm :

3.2에 λ³‘ν•©λ˜μ–΄ λ‹€μŒ v3.2.52 νƒœκ·Έμ—μ„œ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

μ‹œκ°„μ„λ‚΄μ–΄ 문제λ₯Όλ³΄κ³  ν•΄ μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€.

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰