mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-08-25 12:23:58 -04:00
9441774a22
Signed-off-by: Sebastien Dionne <survivant00@gmail.com>
1.9 KiB
1.9 KiB
About GDevelop IDE dependencies (package.json)
GDevelop relies on some dependencies that can have special requirements.
Note on TypeScript
TypeScript here is only used to check the types in the scripts/ files. The IDE uses Flow for static typing. TypeScript is used in the game engine too (see GDJS and Extensions folders).
Storybook
Storybook is depending on webpack and babel.
- It's important to have the same webpack version as the one provided by
react-scripts, hence whywebpackis specified in thedevDependencies. babel-loaderis specified to be the exact version required byreact-scripts(becausereact-scriptswants the exact version and will complain if forced to use thebabel-loaderof Storybook).- Try removing these extra
devDependenciesif you upgrade Storybook or Create React App.
- Try removing these extra
LinguiJS
"babel-core": "^7.0.0-bridge.0"is needed for js-linguilingui extractcommand (who runs Babel on source files).
Drag'n'drop handling
react-dnd is used by react-mosaic-component and react-sortable-tree (but not react-sortable-hoc). Both must be using the same versions of react-dnd and react-dnd-html5-backend. Otherwise, you get blanks/not rendered components.
You can check if there is only one version of a package by doing
npm lsoryarn why:
yarn why react-dndnpm ls webpack
Latest versions of react-sortable-hoc seems to be breaking the lists. The exact version in which this occurs was not determined.
Various fixes
react-mosaic-componentis a custom version wherereact-dndwas simply upgraded to version7.7.0@lingui/reactis a version where Flow definitions have been fixed.pixi-simple-gestureis a version where an extra check forundefinedhas been added totouchStartinpan.js, following traces of errors that have been inspected (though the bug could not be reproduced - but better be safe).