0

最近我在第一个带有 lerna monorepository 的反应项目中遇到了这个错误。所以,当我运行npm run start命令时出现此错误。就我而言,该项目在没有 lerna 的情况下可以正常运行。

E:/lerna/node_modules/pdfjs-dist/build/pdf.js 3559:145
Module parse failed: Unexpected token (3559:145)
File was processed with these loaders:
 * ../../node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|               numPages: this._numPages,
|               annotationStorage: this.annotationStorage.serializable,
>               filename: ((_this$_fullReader = this._fullReader) === null || _this$_fullReader === void 0 ? void 0 : _this$_fullReader.filename) ?? null
|             }).finally(() => {
|               this.annotationStorage.resetModified();```
4

0 回答 0