Ao executar yarn webpack
i recebo o seguinte erro
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.
Se parece com esta propriedade
public filterList: JQuery<HTMLElement>;
Precisa ser digitado como JQuery<Element>
eu tenho o mesmo problema ao instalar akeneo 3.2
esta é apenas uma solução temporária
correção temporária é abrir este arquivo:
web / bundles / pimdatagrid / js / datafilter / filters-column.ts
mude a linha ~ 25 desta:
public filterList: JQuery<HTMLElement>;
para isso:
public filterList: JQuery<Element>;
então corra:
yarn run webpack
O mesmo problema aqui com v3.2.46
mesmo problema aqui com 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.
Ei @robingchan ,
Podemos consertar, mas como somos open source, um PR também seria muito bem-vindo: wink:
A assinatura JQuery.find acabou de ser alterada: /
editar: o PR relacionado em @types : https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44051
Boa captura, Quentin.
Má jogada Jquery: facepalm:
Fundido no 3.2, ele estará disponível na próxima tag v3.2.52.
Obrigado a todos por dedicarem seu tempo para relatar o problema.
Comentários muito úteis
Obrigado a todos por dedicarem seu tempo para relatar o problema.