小编Wil*_*sen的帖子

部署 firebase 云功能时,我得到: Build failed: npm ERR! 无法读取未定义的属性“@babel/core”

这是过去三天我在部署云功能时收到的一系列非常令人沮丧的错误中的最新一个。

\n

部署时我得到:

\n
firebase 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)

npm firebase google-cloud-functions babel-core

6
推荐指数
2
解决办法
1755
查看次数

Ionic 5 当包含 Google Maps Api Key 时:TypeError:无法构造“HTMLElement”:请使用“new”运算符

当我为 Ionic 5 应用程序提供服务时,出现以下错误:

\n
Uncaught 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)

google-maps-api-3 ionic-framework ionic5 angular12

4
推荐指数
1
解决办法
501
查看次数