Fab*_*Chn 47 javascript travis-ci typescript reactjs jestjs
我的所有jest
typescript
测试都在travis
管道中失败,并引发以下错误:
TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>'
Run Code Online (Sandbox Code Playgroud)
突然发生了,我没有更改代码中的任何特定内容。在本地,一切正常。
任何想法会发生什么?
alk*_*ows 60
这是节点v11.11附带的错误。您可以降级到v11.10或等待facebook已经推送的修复(在11.11以上的Node版本中出现玩笑错误)。
如果您的问题与TravisCI有关,则可以设置一个有效的固定版本:
node_js:
- "11.10.1"
Run Code Online (Sandbox Code Playgroud)
Mir*_*nas 21
You can also upgrade your version of jest
to 24.3.0 which has this issue fixed. I believe this is a more future proof solution than downgrading your node.