n0uk / glorio-client

Web-client for glor.io - online game.
http://glor.io
11 stars 9 forks source link

(150,9): error TS2322: Type 'Element' is not assignable to type 'HTMLElement'. Property 'accessKey' is missing in type 'Element'. #5

Closed prynix closed 1 year ago

prynix commented 4 years ago

Running into this error below whenever executing: "npm run server:dist" or "npm run server:dev".

Running NPM 6.11.3, node v12.11.1-x64

hunk {0} game.min.js (main) 4.17 MB [entry] [rendered] [2] (webpack)/buildin/global.js 509 bytes {0} [built] [6] ./src/assets.ts 69.4 kB {0} [built] [39] ./~/protobufjs/dist/protobuf.min.js 66.6 kB {0} [built] [72] ./src/protocol/protocol.json 6.91 kB {0} [built] [73] ./src/app.ts 6.6 kB {0} [built] [74] (webpack)-dev-server/client?http://localhost:9000 5.28 kB {0} [built] [199] ./~/phaser-ce/build/custom/p2.js 412 kB {0} [built] [200] ./~/phaser-ce/build/custom/phaser-split.js 2.71 MB {0} [built] [201] ./~/phaser-ce/build/custom/pixi.js 217 kB {0} [built] [233] ./~/strip-ansi/index.js 161 bytes {0} [built] [260] ./src/states/boot.ts 3.62 kB {0} [built] [261] ./src/states/connection.ts 2.51 kB {0} [built] [262] ./src/states/crash.ts 994 bytes {0} [built] [263] ./src/states/full.ts 992 bytes {0} [built] [277] multi (webpack)-dev-server/client?http://localhost:9000 ./src/app.ts 40 bytes {0} [built]

ERROR in ./src/services/teammanager.ts (150,9): error TS2322: Type 'Element' is not assignable to type 'HTMLElement'. Property 'accessKey' is missing in type 'Element'. Child html-webpack-plugin for "index.html": chunk {0} index.html 640 kB [entry] [rendered] [0] ./src/assets.ts 69.4 kB {0} [built] [1] ./~/lodash/lodash.js 541 kB {0} [built] [2] ./assets/atlases/bear.json 90 bytes {0} [built] [3] ./assets/atlases/bear.png 89 bytes {0} [built] [4] ./assets/atlases/carpig.json 90 bytes {0} [built] [5] ./assets/atlases/carpig.png 89 bytes {0} [built] [6] ./assets/atlases/carwolf.json 90 bytes {0} [built] [7] ./assets/atlases/carwolf.png 89 bytes {0} [built] [8] ./assets/atlases/chicken.json 90 bytes {0} [built] [9] ./assets/atlases/chicken.png 89 bytes {0} [built] [10] ./assets/atlases/darkdoor.json 90 bytes {0} [built] [11] ./assets/atlases/darkdoor.png 89 bytes {0} [built] [12] ./assets/atlases/darkguard.json 90 bytes {0} [built] [13] ./assets/atlases/darkguard.png 89 bytes {0} [built] [119] ./~/html-webpack-plugin/lib/loader.js!./templates/index.ejs 18.4 kB {0} [built]

ERROR in ./src/services/teammanager.ts (150,9): error TS2322: Type 'Element' is not assignable to type 'HTMLElement'. Property 'accessKey' is missing in type 'Element'. Child html-webpack-plugin for "index.html": chunk {0} index.html 640 kB [entry] [0] ./src/assets.ts 69.4 kB {0} [built]

prussaq commented 3 years ago

Type casing <HTMLElement> is required in teammanager.ts line 150.