0
"jwerty"라는 이름의 npm 모듈을 사용하고 있습니다. 그것은 잘 작동하지만, 콘솔에서 나는 아래와 같은 많은 경고가 있습니다. webpack @ 1과 npm @ 3을 사용하고 있습니다. 모듈로드 중 예기치 않은 경고가 발생했습니다.
WARNING in ./~/jwerty/component.json
Module parse failed: /node_modules/jwerty/component.json Line 2: Unexpected token :
You may need an appropriate loader to handle this file type.
| {
| "name": "jwerty",
| "version": "0.3.2",
| "description": "Awesome handling of keyboard events",
@ ./~/jwerty ^\.\/.*$
WARNING in ./~/jwerty/jwerty.canBridge.js
Module parse failed: node_modules/jwerty/jwerty.canBridge.js Line 1: Unexpected token function
You may need an appropriate loader to handle this file type.
| steal('can/control/modifier', './jwerty.js' function(Control){
|
| /**
@ ./~/jwerty ^\.\/.*$
나는 거기에 다른 수입이 없거나이 "항목"파일에서 문을 필요로 할 때 너무 만이 파일이로드됩니다, package.json에서 그 NPM 직접 만드는 "항목"점을 믿었다. 나는 그들을 발견하지 못했지만, webpack은 이러한 경고와 함께 나를 빠져 나간다.
어떻게 제거 할 수 있습니까? 그 이유는 무엇입니까?
'keepithus/jwerty # master'버전을 사용해 볼 수 있습니까? 분명히 https://github.com/keithamus/jwerty/issues/72에서 논의 된대로 몇 가지 수정 사항이 있습니다. –