yaqwsx / Civilizace2

Game system for the second year of Civilizace
2 stars 0 forks source link

Nefunguje akce Postavit cestu #223

Closed JeeRik closed 2 years ago

JeeRik commented 2 years ago

Po vybrani ciloveho pole se objevi bila obrazovka:

[Request] http://localhost:8000/apigame/actions/unfinished "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU1MzE5OTM4LCJpYXQiOjE2NTUzMTgwNjYsImp0aSI6ImVmMmIxMmJjZDRjZjRlMWM4N2YzZTdkNmIzODYwZTEzIiwidXNlcl9pZCI6Mn0.WnT5vNjZl0CXTzvaxdd9-sjVCTi3P2Vbw8lG4zQXDdE" [axios.ts:20](c:/Users/Maara/Documents/Progs/Civilizace2/frontend/src/utils/axios.ts)
Uncaught TypeError: _a$tile3.entity is undefined
    argsValid map.tsx:380
    ActionPreviewPhase action.tsx:256
    React 12
    unstable_runWithPriority scheduler.development.js:468
    React 5
    timer react.tsx:8
    setTimeout handler*./src/utils/react.tsx/useDebounceDeep/< react.tsx:8
    React 5
    unstable_runWithPriority scheduler.development.js:468
    React 8
    unstable_runWithPriority scheduler.development.js:468
    React 4
[map.tsx:380](c:/Users/Maara/Documents/Progs/Civilizace2/frontend/src/pages/map.tsx)
    argsValid map.tsx:380
    ActionPreviewPhase action.tsx:256
    React 11
    performSyncWorkOnRoot self-hosted:1162
    flushSyncCallbackQueueImpl React
    unstable_runWithPriority scheduler.development.js:468
    React 5
    dispatchAction self-hosted:1219
    timer react.tsx:8
    (Async: setTimeout handler)
    useDebounceDeep react.tsx:8
    React 5
    unstable_runWithPriority scheduler.development.js:468
    React 8
    bind_applyFunctionN self-hosted:1313
    dispatchEvent self-hosted:1276
    unstable_runWithPriority scheduler.development.js:468
    React 4
    bind_applyFunctionN self-hosted:1313
    dispatchDiscreteEvent self-hosted:1276
    receiveMessage SelectChild.jsm:272
    receiveMessage SelectChild.jsm:475
The above error occurred in the <ActionPreviewPhase> component:

ActionPreviewPhase@http://localhost:3000/static/js/bundle.js:1426:7
PerformAction@http://localhost:3000/static/js/bundle.js:1334:76
BuildRoadAgenda@http://localhost:3000/static/js/bundle.js:9136:78
MapAgenda@http://localhost:3000/static/js/bundle.js:8694:55
Routes@http://localhost:3000/static/js/bundle.js:145843:7
OrgPages
RequireOrg@http://localhost:3000/static/js/bundle.js:2538:7
Routes@http://localhost:3000/static/js/bundle.js:145843:7
div
div
div
AppFrame@http://localhost:3000/static/js/bundle.js:658:11
AppPages@http://localhost:3000/static/js/bundle.js:757:75
Routes@http://localhost:3000/static/js/bundle.js:145843:7
ScannerDispatcher@http://localhost:3000/static/js/bundle.js:10861:76
Router@http://localhost:3000/static/js/bundle.js:145780:7
BrowserRouter@http://localhost:3000/static/js/bundle.js:145253:7
PersistGate@http://localhost:3000/static/js/bundle.js:151473:20
Provider@http://localhost:3000/static/js/bundle.js:142690:15
App

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries. [react-dom.development.js:20085](c:/Users/Maara/Documents/Progs/Civilizace2/frontend/node_modules/react-dom/cjs/react-dom.development.js)
    React 10
    unstable_runWithPriority scheduler.development.js:468
    React 4
    unstable_runWithPriority scheduler.development.js:468
    React 5
    timer react.tsx:8
    (Async: setTimeout handler)
    useDebounceDeep react.tsx:8
    React 5
    unstable_runWithPriority scheduler.development.js:468
    React 8
    unstable_runWithPriority scheduler.development.js:468
    React 4
Uncaught TypeError: _a$tile3.entity is undefined
    argsValid map.tsx:380
    ActionPreviewPhase action.tsx:256
    React 12
    unstable_runWithPriority scheduler.development.js:468
    React 5
    timer react.tsx:8
    setTimeout handler*./src/utils/react.tsx/useDebounceDeep/< react.tsx:8
    React 5
    unstable_runWithPriority scheduler.development.js:468
    React 8
    unstable_runWithPriority scheduler.development.js:468
    React 4
[map.tsx:380](c:/Users/Maara/Documents/Progs/Civilizace2/frontend/src/pages/map.tsx)
    argsValid map.tsx:380
    ActionPreviewPhase action.tsx:256
    React 11
    performSyncWorkOnRoot self-hosted:1162
    flushSyncCallbackQueueImpl React
    unstable_runWithPriority scheduler.development.js:468
    React 5
    dispatchAction self-hosted:1219
    timer react.tsx:8
    (Async: setTimeout handler)
    useDebounceDeep react.tsx:8
    React 5
    unstable_runWithPriority scheduler.development.js:468
    React 8
    bind_applyFunctionN self-hosted:1313
    dispatchEvent self-hosted:1276
    unstable_runWithPriority scheduler.development.js:468
    React 4
    bind_applyFunctionN self-hosted:1313
    dispatchDiscreteEvent self-hosted:1276
    receiveMessage SelectChild.jsm:272
    receiveMessage SelectChild.jsm:475
yaqwsx commented 2 years ago

Opraveno v 7cdff0d, chyba zavlečena v 71f4607cc6f3ab613f9a5ba51ce29e16fe821b0c