这是过去三天我在部署云功能时收到的一系列非常令人沮丧的错误中的最新一个。
\n部署时我得到:
\nfirebase deploy --only "functions:retireAtlistedEvents,functions:enqueueAtlistedEventsToRetire"\n\n=== Deploying to 'my-project'...\n\ni deploying functions\nRunning command: npm --prefix "$RESOURCE_DIR" run build\n\n> build\n> tsc\n\n\xe2\x9c\x94 functions: Finished running predeploy script.\ni functions: ensuring required API cloudfunctions.googleapis.com is enabled...\ni functions: ensuring required API cloudbuild.googleapis.com is enabled...\ni artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...\n\xe2\x9c\x94 artifactregistry: required API artifactregistry.googleapis.com is enabled\n\xe2\x9c\x94 functions: required API cloudfunctions.googleapis.com is enabled\n\xe2\x9c\x94 functions: required API cloudbuild.googleapis.com is enabled\ni functions: preparing codebase default for deployment\ni functions: preparing functions directory for uploading...\ni functions: packaged /home/wpghijsen/Programs/combinedInstance/treetopCombined/treetoprules/functions …Run Code Online (Sandbox Code Playgroud) 当我为 Ionic 5 应用程序提供服务时,出现以下错误:
\nUncaught TypeError: Failed to construct \'HTMLElement\': Please use the \'new\' operator, this DOM object constructor cannot be called as a function.\n at Reflect.<anonymous> (js?key=MY_API_KEY&v=3.exp&callback=initMap&libraries=places:261:93)\n at new _.C.HTMLElement (js?key=MY_API_KEY&v=3.exp&callback=initMap&libraries=places:338:225)\n at new HostElement (index-7a8b7a1c.js:1847:17)\n at DefaultDomRenderer2.createElement (platform-browser.js:645:1)\n at BaseAnimationRenderer.createElement (animations.js:249:1)\n at createElementNode (core.js:5759:1)\n at \xc9\xb5\xc9\xb5elementStart (core.js:14957:1)\n at AppComponent_Template (template.html:3:3)\n at executeTemplate (core.js:9705:1)\n at renderView (core.js:9508:1)\njs?key=MY_API_KEY&v=3.exp&callback=initMap&libraries=places:261 Uncaught TypeError: Failed to construct \'HTMLElement\': Please use the \'new\' operator, this DOM object constructor cannot be called as a function.\n at …Run Code Online (Sandbox Code Playgroud)