2017-12-14 1 views
1

私のプロジェクトをwebpackでコンパイルしている間、webpackコンパイラはインストールして使用しているすべてのKendo UIコンポーネントに対して次のエラーを送出します。ソースマップが存在しないソースファイルを参照しています

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
- のWebPACK:3.6.0私は現在の回避策は、検索を実行し、各剣道UIのソースマップ参照に置き換えることである

答えて

0

実際のコードのモジュールです。これにより、webpackのコンパイル中に警告が発生することがなくなります。

これは、元のマップが使用されていないため、これは良い解決策ではありません。

更新1:この問題は、Source Map Loaderをタイプスクリプトローダーの横に置くことによって発生しました。

関連する問題