react.jsx.TransformError: ReferenceError: Can't find variable: global
after i run the command
python app.py
i raise this error ,even i search by the google ,but i still can not find any suggestion
any one could help?
i think i find the solution
while i just use python to install the package ,but i may be forget to init the environment ,then i google it and decide to install by the bower can use it
1.install the npm (before you install this ,you have to install the node.js)
https://nodejs.org/en/
2.use the npm to install bower. npm install -g bower
refer this:http://bower.io/
3.the use the bower to install pyxley
bower install pyxley
then i works ,but as i can see it still don't have the js and css file ,you need to add the file by yourself
by use the bower command you can install the require files with bower.json you see in the folder
我觉得我们应该可以用中文交流
一般是缺少文件导致的,所以按照我方式做,我在mac上已经成功运行了。
恩, 我已经解决了
I had the same issue and fixed it by running
pip install PyReact