ReferenceError: styleObject is not defined
at Object.<anonymous> (node_modules/react-native-camera-kit/src/CameraScreen/CameraKitCameraScreenStyleObject.ios.js:1:16)
at Object.<anonymous> (node_modules/react-native-camera-kit/src/CameraScreen/CameraKitCameraScreenBase.js:317:1)
at Object.<anonymous> (node_modules/react-native-camera-kit/src/CameraScreen/CameraKitCameraScreen.ios.js:3:1)
没有得到同一代码在其他机器上运行的错误
答案 0 :(得分:1)
我使用Java 11并尝试使用Spring Boot应用程序运行Eureka Discovery Server,然后在尝试运行此应用程序时出现此错误。
由于它们已从Java 11中删除了与Jaxb相关的库,因此您将它们添加为依赖项。
在Maven POM文件中添加以下内容:
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.activation/activation -->
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>