Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 如何修复';polyfills.js:61462无法重新计算设备参数;离子/角度应用中的错误_Angular_Ionic4_Aframe - Fatal编程技术网

Angular 如何修复';polyfills.js:61462无法重新计算设备参数;离子/角度应用中的错误

Angular 如何修复';polyfills.js:61462无法重新计算设备参数;离子/角度应用中的错误,angular,ionic4,aframe,Angular,Ionic4,Aframe,我正在尝试在Android应用程序中实现一个aframe场景,而不是在web浏览器中。 我已经成功构建了我的ionic/angular代码,在其中我向app.component.html插入了一个aframe场景,如下所示: 并将其部署到我的Android设备上。当我检查应用程序时,我遇到以下问题: No DPDB device match. Dpdb.calcDeviceParams_ @ polyfills.js:61510 Dpdb.recalculateDeviceParams_ @

我正在尝试在Android应用程序中实现一个aframe场景,而不是在web浏览器中。 我已经成功构建了我的ionic/angular代码,在其中我向app.component.html插入了一个aframe场景,如下所示:


并将其部署到我的Android设备上。当我检查应用程序时,我遇到以下问题:

No DPDB device match.
Dpdb.calcDeviceParams_ @ polyfills.js:61510
Dpdb.recalculateDeviceParams_ @ polyfills.js:61455
Dpdb @ polyfills.js:61433
CardboardVRDisplay @ polyfills.js:62703
WebVRPolyfill.getPolyfillDisplays @ polyfills.js:62943
WebVRPolyfill.getVRDisplays @ polyfills.js:62989
WebVRPolyfill @ polyfills.js:62931
149.../package @ polyfills.js:76989
s @ polyfills.js:33
e @ polyfills.js:33
(anonymous) @ polyfills.js:33
(anonymous) @ polyfills.js:33
./node_modules/aframe/dist/aframe-master.js @ polyfills.js:33
__webpack_require__ @ runtime.js:84
./src/polyfills.ts @ polyfills.js:87026
__webpack_require__ @ runtime.js:84
2 @ polyfills.js:87100
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ polyfills.js:1
polyfills.js:61462 Failed to recalculate device parameters.
Dpdb.recalculateDeviceParams_ @ polyfills.js:61462
Dpdb @ polyfills.js:61433
CardboardVRDisplay @ polyfills.js:62703
WebVRPolyfill.getPolyfillDisplays @ polyfills.js:62943
WebVRPolyfill.getVRDisplays @ polyfills.js:62989
WebVRPolyfill @ polyfills.js:62931
149.../package @ polyfills.js:76989
s @ polyfills.js:33
e @ polyfills.js:33
(anonymous) @ polyfills.js:33
(anonymous) @ polyfills.js:33
./node_modules/aframe/dist/aframe-master.js @ polyfills.js:33
__webpack_require__ @ runtime.js:84
./src/polyfills.ts @ polyfills.js:87026
__webpack_require__ @ runtime.js:84
2 @ polyfills.js:87100
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ polyfills.js:1
polyfills.js:61246 Using fallback Android device measurements.
DeviceInfo.determineDevice_ @ polyfills.js:61246
DeviceInfo.updateDeviceParams @ polyfills.js:61231
DeviceInfo @ polyfills.js:61223
CardboardVRDisplay @ polyfills.js:62704
WebVRPolyfill.getPolyfillDisplays @ polyfills.js:62943
WebVRPolyfill.getVRDisplays @ polyfills.js:62989
WebVRPolyfill @ polyfills.js:62931
149.../package @ polyfills.js:76989
s @ polyfills.js:33
e @ polyfills.js:33
(anonymous) @ polyfills.js:33
(anonymous) @ polyfills.js:33
./node_modules/aframe/dist/aframe-master.js @ polyfills.js:33
__webpack_require__ @ runtime.js:84
./src/polyfills.ts @ polyfills.js:87026
__webpack_require__ @ runtime.js:84
2 @ polyfills.js:87100
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ polyfills.js:1
polyfills.js:2200 A-Frame:warn Put the A-Frame 'script' tag in the 'head' of the HTML *before* the scene to ensure everything for A-Frame is properly registered before they are used from HTML. 
polyfills.js:73164 [Deprecation] document.registerElement is deprecated and will be removed in M73, around March 2019. Please use window.customElements.define instead. See https://www.chromestatus.com/features/4642138092470272 for more details.
module.exports.registerElement @ polyfills.js:73164
101.../utils/ @ polyfills.js:72839
s @ polyfills.js:33
(anonymous) @ polyfills.js:33
102../a-entity @ polyfills.js:73279
s @ polyfills.js:33
(anonymous) @ polyfills.js:33
106.../../lib/three @ polyfills.js:74389
s @ polyfills.js:33
(anonymous) @ polyfills.js:33
149.../package @ polyfills.js:77030
s @ polyfills.js:33
e @ polyfills.js:33
(anonymous) @ polyfills.js:33
(anonymous) @ polyfills.js:33
./node_modules/aframe/dist/aframe-master.js @ polyfills.js:33
__webpack_require__ @ runtime.js:84
./src/polyfills.ts @ polyfills.js:87026
__webpack_require__ @ runtime.js:84
2 @ polyfills.js:87100
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ polyfills.js:1
polyfills.js:77059 A-Frame Version: 0.9.2 (Date 2019-05-06, Commit #f57a1fa)
polyfills.js:77060 three Version (https://github.com/supermedium/three.js): ^0.102.2
polyfills.js:77062 WebVR Polyfill Version: ^0.10.10
polyfills.js:61510 No DPDB device match.
Dpdb.calcDeviceParams_ @ polyfills.js:61510
Dpdb.recalculateDeviceParams_ @ polyfills.js:61455
(anonymous) @ polyfills.js:61443
load (async)
Dpdb @ polyfills.js:61439
CardboardVRDisplay @ polyfills.js:62703
WebVRPolyfill.getPolyfillDisplays @ polyfills.js:62943
WebVRPolyfill.getVRDisplays @ polyfills.js:62989
WebVRPolyfill @ polyfills.js:62931
149.../package @ polyfills.js:76989
s @ polyfills.js:33
e @ polyfills.js:33
(anonymous) @ polyfills.js:33
(anonymous) @ polyfills.js:33
./node_modules/aframe/dist/aframe-master.js @ polyfills.js:33
__webpack_require__ @ runtime.js:84
./src/polyfills.ts @ polyfills.js:87026
__webpack_require__ @ runtime.js:84
2 @ polyfills.js:87100
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ polyfills.js:1
polyfills.js:61462 Failed to recalculate device parameters.
Dpdb.recalculateDeviceParams_ @ polyfills.js:61462
(anonymous) @ polyfills.js:61443
load (async)
Dpdb @ polyfills.js:61439
CardboardVRDisplay @ polyfills.js:62703
WebVRPolyfill.getPolyfillDisplays @ polyfills.js:62943
WebVRPolyfill.getVRDisplays @ polyfills.js:62989
WebVRPolyfill @ polyfills.js:62931
149.../package @ polyfills.js:76989
s @ polyfills.js:33
e @ polyfills.js:33
(anonymous) @ polyfills.js:33
(anonymous) @ polyfills.js:33
./node_modules/aframe/dist/aframe-master.js @ polyfills.js:33
__webpack_require__ @ runtime.js:84
./src/polyfills.ts @ polyfills.js:87026
__webpack_require__ @ runtime.js:84
2 @ polyfills.js:87100
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ polyfills.js:1
polyfills.js:28172 THREE.WebGLRenderer 103dev
polyfills.js:20942 THREE.WebGLRenderer: OES_texture_float extension not supported.
get @ polyfills.js:20942
WebGLCapabilities @ polyfills.js:20703
initGLContext @ polyfills.js:28366
WebGLRenderer @ polyfills.js:28416
setupRenderer @ polyfills.js:74984
value @ polyfills.js:74471
attachedCallback @ polyfills.js:73255
push../node_modules/@angular/platform-browser/fesm5/platform-browser.js.DefaultDomRenderer2.appendChild @ vendor.js:66975
push../node_modules/@angular/core/fesm5/core.js.DebugRenderer2.appendChild @ vendor.js:58315
execRenderNodeAction @ vendor.js:54794
visitRenderNode @ vendor.js:54777
visitProjectedRenderNodes @ vendor.js:54744
appendNgContent @ vendor.js:56686
createViewNodes @ vendor.js:57317
callViewAction @ vendor.js:57614
execComponentViewsAction @ vendor.js:57533
createViewNodes @ vendor.js:57326
callViewAction @ vendor.js:57614
execComponentViewsAction @ vendor.js:57533
createViewNodes @ vendor.js:57326
createRootView @ vendor.js:57212
callWithDebugContext @ vendor.js:58220
debugCreateRootView @ vendor.js:57730
push../node_modules/@angular/core/fesm5/core.js.ComponentFactory_.create @ vendor.js:55551
push../node_modules/@angular/core/fesm5/core.js.ComponentFactoryBoundToModule.create @ vendor.js:43978
push../node_modules/@angular/core/fesm5/core.js.ApplicationRef.bootstrap @ vendor.js:52131
(anonymous) @ vendor.js:51851
push../node_modules/@angular/core/fesm5/core.js.PlatformRef._moduleDoBootstrap @ vendor.js:51851
(anonymous) @ vendor.js:51819
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:84057
onInvoke @ vendor.js:51342
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:84056
push../node_modules/zone.js/dist/zone.js.Zone.run @ polyfills.js:83816
(anonymous) @ polyfills.js:84555
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:84089
onInvokeTask @ vendor.js:51333
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:84088
push../node_modules/zone.js/dist/zone.js.Zone.runTask @ polyfills.js:83861
drainMicroTaskQueue @ polyfills.js:84267
Promise.then (async)
scheduleMicroTask @ polyfills.js:84250
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.js:84079
push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ polyfills.js:83904
push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ polyfills.js:83924
scheduleResolveOrReject @ polyfills.js:84545
ZoneAwarePromise.then @ polyfills.js:84678
push../node_modules/@angular/core/fesm5/core.js.PlatformRef.bootstrapModule @ vendor.js:51846
./src/main.ts @ main.js:1062
__webpack_require__ @ runtime.js:84
0 @ main.js:1075
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ main.js:1
Show 9 more frames
polyfills.js:20942 THREE.WebGLRenderer: OES_texture_half_float extension not supported.
get @ polyfills.js:20942
initGLContext @ polyfills.js:28372
WebGLRenderer @ polyfills.js:28416
setupRenderer @ polyfills.js:74984
value @ polyfills.js:74471
attachedCallback @ polyfills.js:73255
push../node_modules/@angular/platform-browser/fesm5/platform-browser.js.DefaultDomRenderer2.appendChild @ vendor.js:66975
push../node_modules/@angular/core/fesm5/core.js.DebugRenderer2.appendChild @ vendor.js:58315
execRenderNodeAction @ vendor.js:54794
visitRenderNode @ vendor.js:54777
visitProjectedRenderNodes @ vendor.js:54744
appendNgContent @ vendor.js:56686
createViewNodes @ vendor.js:57317
callViewAction @ vendor.js:57614
execComponentViewsAction @ vendor.js:57533
createViewNodes @ vendor.js:57326
callViewAction @ vendor.js:57614
execComponentViewsAction @ vendor.js:57533
createViewNodes @ vendor.js:57326
createRootView @ vendor.js:57212
callWithDebugContext @ vendor.js:58220
debugCreateRootView @ vendor.js:57730
push../node_modules/@angular/core/fesm5/core.js.ComponentFactory_.create @ vendor.js:55551
push../node_modules/@angular/core/fesm5/core.js.ComponentFactoryBoundToModule.create @ vendor.js:43978
push../node_modules/@angular/core/fesm5/core.js.ApplicationRef.bootstrap @ vendor.js:52131
(anonymous) @ vendor.js:51851
push../node_modules/@angular/core/fesm5/core.js.PlatformRef._moduleDoBootstrap @ vendor.js:51851
(anonymous) @ vendor.js:51819
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:84057
onInvoke @ vendor.js:51342
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:84056
push../node_modules/zone.js/dist/zone.js.Zone.run @ polyfills.js:83816
(anonymous) @ polyfills.js:84555
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:84089
onInvokeTask @ vendor.js:51333
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:84088
push../node_modules/zone.js/dist/zone.js.Zone.runTask @ polyfills.js:83861
drainMicroTaskQueue @ polyfills.js:84267
Promise.then (async)
scheduleMicroTask @ polyfills.js:84250
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.js:84079
push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ polyfills.js:83904
push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ polyfills.js:83924
scheduleResolveOrReject @ polyfills.js:84545
ZoneAwarePromise.then @ polyfills.js:84678
push../node_modules/@angular/core/fesm5/core.js.PlatformRef.bootstrapModule @ vendor.js:51846
./src/main.ts @ main.js:1062
__webpack_require__ @ runtime.js:84
0 @ main.js:1075
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ main.js:1
Show 8 more frames
polyfills.js:20942 THREE.WebGLRenderer: OES_texture_half_float_linear extension not supported.
get @ polyfills.js:20942
initGLContext @ polyfills.js:28373
WebGLRenderer @ polyfills.js:28416
setupRenderer @ polyfills.js:74984
value @ polyfills.js:74471
attachedCallback @ polyfills.js:73255
push../node_modules/@angular/platform-browser/fesm5/platform-browser.js.DefaultDomRenderer2.appendChild @ vendor.js:66975
push../node_modules/@angular/core/fesm5/core.js.DebugRenderer2.appendChild @ vendor.js:58315
execRenderNodeAction @ vendor.js:54794
visitRenderNode @ vendor.js:54777
visitProjectedRenderNodes @ vendor.js:54744
appendNgContent @ vendor.js:56686
createViewNodes @ vendor.js:57317
callViewAction @ vendor.js:57614
execComponentViewsAction @ vendor.js:57533
createViewNodes @ vendor.js:57326
callViewAction @ vendor.js:57614
execComponentViewsAction @ vendor.js:57533
createViewNodes @ vendor.js:57326
createRootView @ vendor.js:57212
callWithDebugContext @ vendor.js:58220
debugCreateRootView @ vendor.js:57730
push../node_modules/@angular/core/fesm5/core.js.ComponentFactory_.create @ vendor.js:55551
push../node_modules/@angular/core/fesm5/core.js.ComponentFactoryBoundToModule.create @ vendor.js:43978
push../node_modules/@angular/core/fesm5/core.js.ApplicationRef.bootstrap @ vendor.js:52131
(anonymous) @ vendor.js:51851
push../node_modules/@angular/core/fesm5/core.js.PlatformRef._moduleDoBootstrap @ vendor.js:51851
(anonymous) @ vendor.js:51819
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:84057
onInvoke @ vendor.js:51342
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:84056
push../node_modules/zone.js/dist/zone.js.Zone.run @ polyfills.js:83816
(anonymous) @ polyfills.js:84555
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:84089
onInvokeTask @ vendor.js:51333
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:84088
push../node_modules/zone.js/dist/zone.js.Zone.runTask @ polyfills.js:83861
drainMicroTaskQueue @ polyfills.js:84267
Promise.then (async)
scheduleMicroTask @ polyfills.js:84250
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.js:84079
push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ polyfills.js:83904
push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ polyfills.js:83924
scheduleResolveOrReject @ polyfills.js:84545
ZoneAwarePromise.then @ polyfills.js:84678
push../node_modules/@angular/core/fesm5/core.js.PlatformRef.bootstrapModule @ vendor.js:51846
./src/main.ts @ main.js:1062
__webpack_require__ @ runtime.js:84
0 @ main.js:1075
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ main.js:1
Show 8 more frames
polyfills.js:20942 THREE.WebGLRenderer: OES_texture_float_linear extension not supported.
get @ polyfills.js:20942
initGLContext @ polyfills.js:28380
WebGLRenderer @ polyfills.js:28416
setupRenderer @ polyfills.js:74984
value @ polyfills.js:74471
attachedCallback @ polyfills.js:73255
push../node_modules/@angular/platform-browser/fesm5/platform-browser.js.DefaultDomRenderer2.appendChild @ vendor.js:66975
push../node_modules/@angular/core/fesm5/core.js.DebugRenderer2.appendChild @ vendor.js:58315
execRenderNodeAction @ vendor.js:54794
visitRenderNode @ vendor.js:54777
visitProjectedRenderNodes @ vendor.js:54744
appendNgContent @ vendor.js:56686
createViewNodes @ vendor.js:57317
callViewAction @ vendor.js:57614
execComponentViewsAction @ vendor.js:57533
createViewNodes @ vendor.js:57326
callViewAction @ vendor.js:57614
execComponentViewsAction @ vendor.js:57533
createViewNodes @ vendor.js:57326
createRootView @ vendor.js:57212
callWithDebugContext @ vendor.js:58220
debugCreateRootView @ vendor.js:57730
push../node_modules/@angular/core/fesm5/core.js.ComponentFactory_.create @ vendor.js:55551
push../node_modules/@angular/core/fesm5/core.js.ComponentFactoryBoundToModule.create @ vendor.js:43978
push../node_modules/@angular/core/fesm5/core.js.ApplicationRef.bootstrap @ vendor.js:52131
(anonymous) @ vendor.js:51851
push../node_modules/@angular/core/fesm5/core.js.PlatformRef._moduleDoBootstrap @ vendor.js:51851
(anonymous) @ vendor.js:51819
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:84057
onInvoke @ vendor.js:51342
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:84056
push../node_modules/zone.js/dist/zone.js.Zone.run @ polyfills.js:83816
(anonymous) @ polyfills.js:84555
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:84089
onInvokeTask @ vendor.js:51333
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:84088
push../node_modules/zone.js/dist/zone.js.Zone.runTask @ polyfills.js:83861
drainMicroTaskQueue @ polyfills.js:84267
Promise.then (async)
scheduleMicroTask @ polyfills.js:84250
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.js:84079
push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ polyfills.js:83904
push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ polyfills.js:83924
scheduleResolveOrReject @ polyfills.js:84545
ZoneAwarePromise.then @ polyfills.js:84678
push../node_modules/@angular/core/fesm5/core.js.PlatformRef.bootstrapModule @ vendor.js:51846
./src/main.ts @ main.js:1062
__webpack_require__ @ runtime.js:84
0 @ main.js:1075
__webpack_require__ @ runtime.js:84
checkDeferredModules @ runtime.js:46
webpackJsonpCallback @ runtime.js:33
(anonymous) @ main.js:1
Show 8 more frames
vendor.js:50872 Angular is running in the development mode. Call enableProdMode() to enable the production mode.
vendor.js:74316 Ionic Native: deviceready event fired after 814 ms
polyfills.js:20942 THREE.WebGLRenderer: EXT_texture_filter_anisotropic extension not supported.  
我的信息是:

Ionic:

   ionic (Ionic CLI)             : 4.12.0 (C:\Users\moham\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.3.1
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.8
   @angular/cli                  : 7.3.8
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : android 8.0.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 4 other plugins)

System:

   NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10

我真的需要帮助

polyfill使用设备数据库来确定分辨率。如果您的设备不在该数据库中,则会出现错误。尝试将您的仿真器更改为其他仿真器,并查看它是否有效。polyfill使用设备数据库来确定分辨率。如果您的设备不在该数据库中,则会出现错误。试着把你的模拟器换成别的东西,看看它能不能工作

有用吗?我在另一部手机上测试过,但同样的错误。我可以在parameters程序中更改一些内容以将我的设备添加到此数据库中吗。谢谢不,我认为这是不可能的。也许如果你使用android studio emulator,它会工作吗?我在另一部手机上测试过,但同样的错误。我可以在parameters程序中更改一些内容以将我的设备添加到此数据库中吗。谢谢不,我认为这是不可能的。如果您使用android studio emulator,它可能会工作