Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web): Added missing type data for "module.hot" calls (#1500)
## Problem - RPM build [fails with this error](https://build.opensuse.org/package/live_build_log/systemsmanagement:Agama:Devel/agama-web-ui/openSUSE_Tumbleweed/x86_64): ``` ERROR in /home/abuild/rpmbuild/BUILD/agama/src/context/installer.jsx ./src/context/installer.jsx 93:15-18 [tsl] ERROR in /home/abuild/rpmbuild/BUILD/agama/src/context/installer.jsx(93,16) TS2339: Property 'hot' does not exist on type 'NodeModule'. ``` - It fails because the `module.hot` is not known ## Solution - Explicitly load the types from the `@types/webpack-env` package - Suggested solution found [here](https://stackoverflow.com/a/68539136) ## Testing - Tested manually, the package now builds with `osc build` locally
- Loading branch information