不知道为什么我会有这个问题。我遵循的是一个反应本机教程,并且正在经历这个错误:
TransformFile(filePath, transformOptions) {
    var _this3 = this;
    return _asyncToGenerator(function*() {
      // We need to be sure that the DependencyGraph has been initialized.
      // TODO: Remove this ugly hack!
      yield _this3._depGraphPromise;
      return _this3._transformer.transformFile(filePath, transformOptions);
    })();发布于 2022-05-13 22:54:28
这个问题通常会发生,因为用户使用的是更新的节点版本。您可以通过使用Nvm降低节点的级别来解决这一问题。下面是使用Nvm,https://www.npmjs.com/package/nvm的链接。如果你还有其他问题,请告诉我:)
https://stackoverflow.com/questions/72194461
复制相似问题