#Running into exceptions when setting up react

1 messages · Page 1 of 1 (latest)

golden ore
#

Hello all, I am running into this exception ```JS Exception! *** Skipping rest of script ***

file:///g:/steam/steamapps/common/dota 2 beta/game/dota_addons/stupyd_dota/panorama/scripts/custom_game/hud.js
line:645, col:15

const global = new Function('return this')();

Uncaught EvalError: Code generation from strings disallowed for this context
at ../../../node_modules/panorama-polyfill/lib/console.js
(file:///g:/steam/steamapps/common/dota 2 beta/game/dota_addons/stupyd_dota/panorama/scripts/custom_game/hud.js:645:16)
at webpack_require
(file:///g:/steam/steamapps/common/dota 2 beta/game/dota_addons/stupyd_dota/panorama/scripts/custom_game/hud.js:5690:41)
at ../../../node_modules/react-panorama/dist/esm/react-panorama.development.js
(file:///g:/steam/steamapps/common/dota 2 beta/game/dota_addons/stupyd_dota/panorama/scripts/custom_game/hud.js:943:87)
at webpack_require
(file:///g:/steam/steamapps/common/dota 2 beta/game/dota_addons/stupyd_dota/panorama/scripts/custom_game/hud.js:5690:41)
at (anonymous)
(file:///g:/steam/steamapps/common/dota 2 beta/game/dota_addons/stupyd_dota/panorama/scripts/custom_game/hud.js:5759:72)
at (anonymous)
(file:///g:/steam/steamapps/common/dota 2 beta/game/dota_addons/stupyd_dota/panorama/scripts/custom_game/hud.js:5768:3)
at (anonymous)
(file:///g:/steam/steamapps/common/dota 2 beta/game/dota_addons/stupyd_dota/panorama/scripts/custom_game/hud.js:5770:12)``` when setting up react.
I installed all of the panorama dependancies and babel plugins and it seems that webpack is working, but can't seem to be able to understand what the issue is here.
Any guidance would be appriciated.

silver mountain
#

update your packages
valve disabled code generation like eval() or new Function()() before
and early version react-panorama is based on this

golden ore
silver mountain
#

@sullen rain which repository's react are people now using? sorry I dont know these