반응형
Vuex(vuex-typex)에서 알 수 없는 작업 유형이 갑자기 느려짐
저는 제 문제를 이해하는 데 어려움을 겪고 있어요.나는 이미 과거에 그것을 경험했지만 어떻게 그것을 제거했는지 정확히 기억할 수 없습니다.다시 한 번, 나는[vuex] unknown action type: attributes/getAttributes
가게와 관련된 코드를 누르지도 않은 상태에서 갑자기 오류가 발생했습니다.그 전에 npm 패키지/package-lock.json을 재추가했을 가능성이 있습니다만, 그 밖에 "근본적으로" 변경된 것은 아무것도 모르기 때문에, 그것은 추측에 지나지 않습니다.같은 방법으로 설정된 다른 모든 저장소 모듈은 눈에 띄는 차이 없이 계속 작동합니다.
오브젝트 콘솔로그attributesDispatch
포함된 함수가 표시됩니다.
loadData() {
console.log(attributesDispatch) // #1
attributesDispatch.getAttributes() // #2
}
결과적으로
#1
{ getAttributes: ƒ }
getAttributes: ƒ (payload)
// contents:
arguments: (...)
caller: (...)
length: 1
name: ""
prototype: {constructor: ƒ}
__proto__: ƒ ()
[[FunctionLocation]]: index.js?fb46:86
[[Scopes]]: Scopes[5]
0: Closure (ModuleBuilderImpl.dispatch) {_this: ModuleBuilderImpl, namespacedKey: "attributes/getAttributes"}
1: Closure {ModuleBuilderImpl: ƒ}
2: Closure {__extends: ƒ, __assign: ƒ, vuex_1: Module, useRootNamespace: {…}, qualifyKey: ƒ, …}
3: Closure (./node_modules/vuex-typex/dist/index.js) {__webpack_require__: ƒ, exports: {…}, module: {…}, arguments: Arguments(3)}
4: Global {postMessage: ƒ, blur: ƒ, focus: ƒ, close: ƒ, parent: Window, …}
#2
[vuex] unknown action type: attributes/getAttributes
이 문제에 어떻게 대처해야 하는지 아십니까?관련이 있을 수 있습니다.vuex-typex
- 한편, 이전에도 동작하고 있고, 다른 스토어 모듈에서도 동작하고 있기 때문에, 그 이유를 알 수 없습니다.
어떤 도움이나 힌트라도 감사합니다!
언급URL : https://stackoverflow.com/questions/55427480/vuex-vuex-typex-suddenly-throws-unknown-action-type
반응형
'programing' 카테고리의 다른 글
Java에서 컴퓨터의 CPU, 메모리 및 디스크 사용량을 모니터링하려면 어떻게 해야 합니까? (0) | 2022.07.28 |
---|---|
Vuex 변경은 모듈에 영향을 주지 않음 (0) | 2022.07.27 |
Vue 단일 파일 구성 요소에서 이미지를 가져오고 사용하는 방법 (0) | 2022.07.27 |
오류: [vuex]에서 문자열이 유형으로 예상되지만 정의되지 않았습니다. (0) | 2022.07.27 |
vuejs2는 사용자가 @ 키를 눌렀는지 여부를 수신합니다. (0) | 2022.07.27 |