Closed thinkh closed 4 years ago
The line belongs to this function:
It looks like jQuery typings have changed.
Comparing the dependencies of the errored with the last successful Circle build shows that the jQuery typings version has been updated:
├─┬ phovea_ui@4.0.1-SNAPSHOT (github:phovea/phovea_ui#1f0e6d7d99e44e2e7942bdc552ef0703b81ef8bb)
│ ├── @types/bootstrap@3.3.32
-│ ├── @types/jquery@3.3.34
+│ ├── @types/jquery@3.3.36
│ ├── bootstrap-sass@3.3.7
│ ├── font-awesome@4.7.0
│ ├── jquery@3.4.1
Checking npm shows that @types/jquery
@3.3.36 was released 16 hours ago.
Checking the jquery directory in the source repository shows that PR https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44051 got merged.
Following to this PR reveals that the signature of .find()
was changed from HTMLElement
to Element
.
According to the lib.dom.ts the Element
does not contain dataset
property.
A solution is shown in the test of the PR:
var $list = $($item.find("a").attr("href"))
- .find(".connectedSortable");
+ .find<HTMLElement>(".connectedSortable");
Steps to reproduce
npm run build:web
locallyObserved behavior
Expected behavior
The build should run successfully.