jHipster Elastic Search Reindexer模块错误:TS2305:模块'“ ../../shared”'没有导出的成员'UserRouteAccessService'

时间:2019-09-11 12:15:41

标签: elasticsearch jhipster

我正在使用jhipster 6.2,并了解ElasticSearch。在我正在处理的项目中,很多数据将使用CSV进行预加载,我知道要使用弹性搜索可以搜索到这些数据,我需要重新索引数据库,因为它不是使用CSV加载的REST API。

根据Jhipster文档here中的文档,建议为此使用this module,但是,出现以下错误:

(谢谢您的帮助!)

[INFO]  ERROR  Failed to compile with 2 errors12:51:11 PM
[INFO]
[INFO]  error  in /mnt/c/Users/Usuario/Documents/GitHub/fasm/src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex.route.ts
[INFO]
[INFO] ERROR in /mnt/c/Users/Usuario/Documents/GitHub/fasm/src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex.route.ts(2,10):
[INFO] TS2305: Module '"../../shared"' has no exported member 'UserRouteAccessService'.
[INFO]
[INFO]  error  in /mnt/c/Users/Usuario/Documents/GitHub/fasm/src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex.service.ts
[INFO]
[INFO] ERROR in /mnt/c/Users/Usuario/Documents/GitHub/fasm/src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex.service.ts(4,10):
[INFO] TS2305: Module '"../../../../../../node_modules/rxjs/Rx"' has no exported member 'Observable'.
[INFO]
[INFO]    784 modules
[INFO]
[INFO] WARNING in ./src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex.route.ts 10:18-40
[INFO] "export 'UserRouteAccessService' was not found in '../../shared'
[INFO]
[INFO] ERROR in /mnt/c/Users/Usuario/Documents/GitHub/fasm/src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex.route.ts
[INFO] ERROR in /mnt/c/Users/Usuario/Documents/GitHub/fasm/src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex.route.ts(2,10):
[INFO] TS2305: Module '"../../shared"' has no exported member 'UserRouteAccessService'.
[INFO]
[INFO] ERROR in /mnt/c/Users/Usuario/Documents/GitHub/fasm/src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex.service.ts
[INFO] ERROR in /mnt/c/Users/Usuario/Documents/GitHub/fasm/src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex.service.ts(4,10):
[INFO] TS2305: Module '"../../../../../../node_modules/rxjs/Rx"' has no exported member 'Observable'.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:08 min
[INFO] Finished at: 2019-09-11T11:52:13Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:npm (webpack build dev) on project fasm: Failed to run task: 'npm run webpack:build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

0 个答案:

没有答案