我试图从 Angular2 迁移到 Angular4,但在 Angular4 中出现错误:
零件:
从'@angular/platform-browser/testing/src/browser_util'导入{ browserDetection};
if (browserDetection.isWebkit && browserDetection.supportsNativeIntlApi && !browserDetection.isChromeDesktop && !browserDetection.isOldChrome) { return new Blob([new Uint8Array(array).buffer], {type: mimeString}); }
控制台中的错误:
找不到模块:错误:无法解析“/Users/ivan/blablabla/src/app/+client/client-profile/shared”中的“@angular/platform-browser/testing/src/browser_util”
当我运行“npm start”时出现错误。在Angular2中没有错误并且一切正常&如何解决这个问题?