尝试按照这些说明https://github.com/vaadin/charts/blob/7a55e8dab5b9941a05603c2624a576866e86045d/DevInstructions.md,但我无法执行下载依赖项步骤,即使它昨天工作。小部件编译也不起作用。
在“vaadin-charts-directorypackage”中,导入后显示 4 个错误
Failed to run task (com.github.eirslett:frontend-maven-plugin:0.0.23:bower:bower install:generate-resources)
Failed to run task (com.github.eirslett:frontend-maven-plugin:0.0.23:gulp:gulp deploy:deploy)
Failed to run task (com.github.eirslett:frontend-maven-plugin:0.0.23:gulp:gulp stage:generate-resources)
Failed to run task (com.github.eirslett:frontend-maven-plugin:0.0.23:npm:npm install:generate-resources)
Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install --color=false' failed. (error code 34)
然后在添加方面之后:
Cannot change version of project facet Dynamic Web Module to 2.4. vaadin-charts-demo line 1 Maven Java EE Configuration Problem
Java compiler level does not match the version of the installed Java project facet. vaadin-charts-demo Unknown Faceted Project Problem (Java Version Mismatch)
One or more constraints have not been satisfied. vaadin-charts-demo line 1 Maven Java EE Configuration Problem
如何修复这些错误?只是希望能够运行图表演示,看起来应该不难,但无法克服这些错误。尝试一一搜索错误,但不确定如何将更改应用于导入/与“vaadin-charts-demo”相关的不同文件/项目