0

在过去的几个月里,我一直在开发一个显示在 ASP.NET Core Web 项目(Visual Studio 模板)中的 React Web 应用程序。该应用程序在最近几个月一直在运行,并被仅在 IE 11(使用 IE 11 渲染引擎的 Office Web 插件)中显示它的用户使用。babel-polyfill我已经广泛使用了 'fetch' 方法,并且在添加npm 包后没有遇到问题。不幸的是,今天我收到以下错误:

'fetch' is undefined

polyfill 包仍然存在,我不清楚为什么会突然报告此错误。如上所述,它之前确实有效,我不确定是什么导致了“isomorphic-fetch”包停止工作的情况。您将在下面找到package.json内容。任何有关在哪里寻找此问题的根本原因的见解将不胜感激!

{
  "name": "ReactApp",
  "private": true,
  "version": "0.0.0",
  "devDependencies": {
    "@types/history": "4.6.0",
    "@types/react": "15.0.38",
    "@types/react-dom": "15.5.1",
    "@types/react-hot-loader": "3.0.3",
    "@types/react-router": "4.0.12",
    "@types/react-router-dom": "4.0.5",
    "@types/webpack-env": "1.13.0",
    "aspnet-webpack": "^2.0.1",
    "aspnet-webpack-react": "^3.0.0",
    "awesome-typescript-loader": "3.2.1",
    "bootstrap": "3.3.7",
    "css-loader": "0.28.4",
    "event-source-polyfill": "0.0.9",
    "extract-text-webpack-plugin": "2.1.2",
    "file-loader": "0.11.2",
    "isomorphic-fetch": "2.2.1",
    "jquery": "3.2.1",
    "json-loader": "0.5.4",
    "react": "15.6.1",
    "react-dom": "15.6.1",
    "react-hot-loader": "3.0.0-beta.7",
    "react-router-dom": "4.1.1",
    "style-loader": "0.18.2",
    "typescript": "2.4.1",
    "url-loader": "0.5.9",
    "webpack": "2.5.1",
    "webpack-hot-middleware": "2.18.2"
  },
  "dependencies": {
    "@microsoft/office-js": "^1.1.2",
    "@types/prop-types": "^15.5.2",
    "babel-polyfill": "^6.26.0",
    "moment": "^2.20.1",
    "office-ui-fabric-core": "^9.3.0",
    "office-ui-fabric-react": "https://registry.npmjs.org/office-ui-fabric-react/-/office-ui-fabric-react-5.29.0.tgz"
  }
}
4

0 回答 0