pyxley icon indicating copy to clipboard operation
pyxley copied to clipboard

react.jsx.TransformError: ReferenceError: Can't find variable: global

Open BruceDone opened this issue 10 years ago • 6 comments

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?

BruceDone avatar Jan 25 '16 06:01 BruceDone

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

BruceDone avatar Jan 25 '16 06:01 BruceDone

by use the bower command you can install the require files with bower.json you see in the folder

BruceDone avatar Jan 25 '16 06:01 BruceDone

我觉得我们应该可以用中文交流

yoyoidea avatar Jan 28 '16 02:01 yoyoidea

一般是缺少文件导致的,所以按照我方式做,我在mac上已经成功运行了。

BruceDone avatar Jan 28 '16 03:01 BruceDone

恩, 我已经解决了

yoyoidea avatar Jan 28 '16 03:01 yoyoidea

I had the same issue and fixed it by running

pip install PyReact

icfixx avatar Sep 30 '16 19:09 icfixx