问题标签 [missing-features]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
490 浏览

firebase - Firebase auth CDN 未导出模块

我正在按照官方 Google 教程示例通过 CDN 而不是 SDK 包含 Firebase:

https://firebase.google.com/docs/web/alt-setup#from-the-cdn

逐字复制示例后:

我得到浏览器错误:

未捕获的语法错误:请求的模块“https://www.gstatic.com/firebasejs/9.4.1/firebase-auth.js”未提供名为“auth”的导出

将 auth import 行注释掉,你会得到与 firestore 导入行完全相同的错误。

这是文件/教程的问题还是我的问题?

似乎教程指的是错误的文件?

0 投票
0 回答
27 浏览

keyerror - KeyError ~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)

\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) try: return self.enter code here_engine.get_loc(casted_key) 除了 KeyError 作为错误代码在这里:

~\anaconda3\lib\site-packages\pandas_libs\index.pyx 在 pandas._libs.index.IndexEngine.get_loc()

~\anaconda3\lib\site-packages\pandas_libs\index.pyx 在 pandas._libs.index.IndexEngine.get_loc()

pandas_libs\hashtable_class_helper.pxi 在 pandas._libs.hashtable.PyObjectHashTable.get_item()

pandas_libs\hashtable_class_helper.pxi 在 pandas._libs.hashtable.PyObjectHashTable.get_item()

KeyError:'YearsInCurrentRole'

上述异常是以下异常的直接原因:

KeyError Traceback (最近一次调用最后一次) ~\AppData\Local\Temp/ipykernel_25644/809870847.py in 23 # Generate and plot 24 x = df['Age'].values ---> 25 y = df['YearsInCurrentRole' ].values 26 sns.kdeplot(x, y, cmap=cmap, shade=True, ax=axes[0,2]) 27 axes[0,2].set(title = '年龄对年龄的作用')

~\anaconda3\lib\site-packages\pandas\core\frame.py in getitem(self, key) 3456 if self.columns.nlevels > 1: 3457 return self._getitem_multilevel(key) -> 3458 indexer = self.columns .get_loc(key) 3459 if is_integer(indexer): 3460 indexer = [indexer]

~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 3361 return self._engine.get_loc(casted_key) 3362 除了 KeyError as err:enter code here - > 3363 如果 is_scalar(key) 和 isna(key) 而不是 self.hasnans,则从 err 3364 3365 引发 KeyError(key)

KeyError:'YearsInCurrentRole'