我gatsby build在Building static html step 中运行时遇到问题。我在前端使用 gatsby,后端使用 firebase。我有这个错误:
ERROR #95313
Building static HTML failed
See our docs page for more info on this error: https://gatsby.dev/debug-html
85 | ]);
86 |
> 87 | proxyRequestMethods(Index, '_index', IDBIndex, [
| ^
88 | 'get',
89 | 'getKey',
90 | 'getAll',
WebpackError: ReferenceError: IDBIndex is not defined
Run Code Online (Sandbox Code Playgroud)
我认为问题来自我的 firebase.js 文件,因为当我评论它时,错误不再出现。这里是 :
import firebase from "firebase"
const firebaseConfig = {
apiKey: "AIzaSyDCiX9_kFYoatKJB7Idc-K_k2XrkwUs5So",
authDomain: "gourmeto-6fd67.firebaseapp.com",
databaseURL: "https://gourmeto-6fd67.firebaseio.com",
projectId: "gourmeto-6fd67",
storageBucket: "gourmeto-6fd67.appspot.com", …Run Code Online (Sandbox Code Playgroud) 我正在尝试在我的项目中使用 Spring Framework,但我在导入时遇到了问题。我正在使用 Gradle 进行构建,前端使用 React JS,后端使用 Java。
奇怪的是,即使 VS Code 告诉我无法解析我的导入,我也可以将类用作 RowMapper 和 JdbcTemplate(我可以使用这些类在我的数据库中读写)。
当我使用 Gradle 构建时(在我的命令提示符中 gradle build 然后 gradle bootrun )它也可以工作。
处理不应该存在的错误非常无聊。有人能帮我吗 ?
我个人认为这是我的 build.gradle 文件或 VS Code 中的配置中的错误,但我不确定。
这是我的 build.gradle 和我的依赖项和我的存储库:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
apply plugin: 'java'
apply plugin: 'org.liquibase.gradle'
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter:2.0.6.RELEASE")
// Use MySQL Connector-J
runtime 'mysql:mysql-connector-java:8.0.12'
compile("org.springframework:spring-jdbc:3.2.4.RELEASE")
testCompile('org.junit.jupiter:junit-jupiter-api:5.3.1')
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.3.1')
compile ('commons-dbcp:commons-dbcp:1.4')
liquibaseRuntime 'org.liquibase:liquibase-core:3.6.1'
liquibaseRuntime 'org.liquibase:liquibase-groovy-dsl:2.0.1'
liquibaseRuntime 'mysql:mysql-connector-java:8.0.12'
}
Run Code Online (Sandbox Code Playgroud)
这是我的项目中发生错误的一类:
package be.heh.petclinic.component.pet;
import …Run Code Online (Sandbox Code Playgroud)