본문 바로가기

오류11

[JQuery] serializeObject 미동작 해결 방법 가끔가다가 serializeObject 가 제대로 동작하지 않는 이슈가 있었습니다. 아마도 태그가 제대로 안 닫혔거나 name이 제대로 없거나 하는 오류가 존재했던 것 같은데 어떨 땐 되고 어떨 땐 안 되는 게 이상합니다. serializeObject 가 제대로 동작하지 않을 땐, serializeArray로 form을 리스트로 가져온 후 Object로 만들어주었습니다. var list = []; var obj = {}; var cnt = 0; var array = $("#form").serializeArray(); array.forEach(function(data, idx){ if(data.name.split('.')[0].indexOf(cnt) == -1){ list.push(obj); obj = {.. 2023. 11. 15.
A problem occurred evaluating project ':app' 오류 npm run android 프로젝트명 을 실행하니 처음에는 잘 실행되나 싶었으나 오류가 발생했습니다. FAILURE: Build failed with an exception. * Where: Build file 'D:\app\weightLog\andro id\app\build.gradle' line: 1 * What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some .. 2023. 2. 16.
Execution failed for task ':react-native-gradle-plugin:compileKotlin' 오류 npm run android 프로젝트명 을 실행하니 오류가 발생했습니다. error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. > Task :react-native-gradle-plugin:compileKotlin FAILED 'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version. 1 actionable task: 1 executed FAILURE: Build f.. 2023. 2. 14.
cli.init is not a function 오류 cli로 프로젝트를 생성하면 아래와 같은 오류가 발생합니다. (npx react-native init 프로젝트명 명령어 실행 후 오류) TypeError: cli.init is not a function Installing react-native... Consider installing yarn to make this faster: https://yarnpkg.com npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN.. 2023. 2. 12.
java.lang.StringIndexOutOfBoundsException 오류 value.substring(0, 10); 받아온 value 값을 substring을 이용해 자르려고 하니 오류가 발생했습니다. java.lang.StringIndexOutOfBoundsException: String index out of range: 10 문자열의 길이가 10자리 이하인데 10자로 자르려고해서 생기는 오류입니다. substring 로직 전에 길이 체크하는 로직을 추가하면 정상 작동합니다. value.length() > 10 ? value.substring(0, 10) : value; 2022. 2. 4.
반응형