2017-12-14 7 views
1

을 참조의 웹팩 컴파일러는 모든 검도 UI의 I가 설치 한 구성 요소 및 사용에 대한 다음과 같은 오류가 발생합니다.소스 맵이 존재하지 않는 소스 파일

WARNING in ./node_modules/@progress/kendo-dropdowns-react-wrapper/dist/es/autocomplete/index.js 
(Emitted value instead of an instance of Error) Cannot find source file '../../../src/autocomplete/index.tsx': Error: Can't resolve '../../../src/autocomplete/index.tsx' in 'C:\Users\apearson\Documents\ILS\OmniView\OmniView.UI\node_modules\@progress\kendo-dropdowns-react-wrapper\dist\es\autocomplete' 
@ ./node_modules/@progress/kendo-dropdowns-react-wrapper/dist/es/index.js 1:0-43 
@ ./ClientApp/components/elements/SearchDrawer.tsx 
@ ./ClientApp/components/pages/Checks.tsx 
@ ./ClientApp/App.tsx 
@ multi (webpack)-dev-server/client?http://localhost:8080 ./ClientApp/App.tsx 

이 오류는 존재하지 않는 상대 경로를 참조하는 검도 UI 모듈의 원본 맵 때문에 발생합니다. 여기에 NPM 설치를 한 후 문제 및 현재 파일 구조의 원인이되는 소스 맵의 조각이다.

Kendo UI Module File Structure

당신이 "sources": "../../../src/autocomplete/index.tsx"을 볼 수 있듯이

{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/autocomplete/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAO, 

문제의 원인 코드입니다.

이 것이 알려진 문제입니까?

현재 설정 :
- 검도 UI : 2017.3.1116
- 웹팩 : 3.6.0 내가 가진 현재의 해결 방법은 검색을 수행하고 각 검도 UI에 대한 소스지도 기준에 대체하는 것입니다

답변

0

모듈을 실제 코드에 추가합니다. 이것은 웹팩 컴파일시에 일어나는에서 경고를 제거합니다.

이것은 지금까지 사용되는 소스 맵을 제거하기 때문에 좋은 해결책이 아니다.

업데이트 1 : 문제는 타이프 라이터 로더 나란히 Source Map Loader을 실행에 의해 발생했다.