Promise.allSettled([fetchInformation()]).then(res => this.data = res)
в constructor.fetchInformation() {
return axios.get(`${API_BASE}/getAddressInformation`, {
params: {
address: this.address
}
}).then(({ data }) => data);
}
Module parse failed: Unexpected token (44:117)
File was processed with these loaders:
* ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| } else {
> result = Object.values(districts.flatMap(d => d.properties.groups).reduce((total, group) => (total[group.id] ||= {
| id: group.id,
| name: group.name,