目前正在学习 React JS,我对这些技术仍然是新手。
将 webpack 从 4.30.0 更新到 5.10.0 然后我运行后npm start,出现了一些错误,如下所示。我尝试删除node_modules并重新安装,然后npm start,它没有改变任何东西。
依赖项:
"webpack": "^5.10.0",
"webpack-cli": "^4.2.0",
"webpack-dev-middleware": "4.0.2",
"webpack-hot-middleware": "2.25.0",
"webpack-pwa-manifest": "4.3.0",
Run Code Online (Sandbox Code Playgroud)
错误 :

我试图使用 Recyclerview 从 Documents 类加载数据,但错误出现在 logcat“W/Firestore: (21.1.1) [CustomClassMapper]: No setter/field for Document Name found on class id.MuhammadRafi.StockCount.Documents” . 顺便问一下,我的错在哪里?
文件类:
public class Documents extends DocumentID {
String documentName;
String documentDate;
String inspectorName;
String marketLocation;
public Documents() {
}
public Documents(String documentName, String documentDate, String inspectorName, String marketLocation) {
this.documentName = documentName;
this.documentDate = documentDate;
this.inspectorName = inspectorName;
this.marketLocation = marketLocation;
}
public String getDocumentName() {
return documentName;
}
public String getDocumentDate() {
return documentDate;
}
public …Run Code Online (Sandbox Code Playgroud) java android firebase android-recyclerview google-cloud-firestore