react.jsx.TransformError:或:undefined不是对象(评估'f.JSXTransformer = e()')

时间:2015-01-19 21:20:40

标签: python reactjs

我正在关注https://github.com/reactjs/react-python编译我的jsx到js,但是我收到了错误消息,堆栈跟踪是:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/react/jsx.py", line 56, in transform
    return JSXTransformer().transform(jsx_path, js_path)
  File "/Library/Python/2.7/site-packages/react/jsx.py", line 43, in transform
    js = self.transform_string(i.read())
  File "/Library/Python/2.7/site-packages/react/jsx.py", line 39, in transform_string
    raise TransformError(e.message[7:])
react.jsx.TransformError: or: undefined is not an object (evaluating 'f.JSXTransformer=e()')

能帮助我的吗?谢谢!

1 个答案:

答案 0 :(得分:0)

检查路径上是否可以访问节点二进制文件。