2012-06-12 7 views
0

angularjs를로드 할 때 이상한 오류가 발생했습니다. 웹에서 검색하려했지만 아무 것도 발견되지 않았습니다. 그게 무슨 뜻인지 아십니까?Angularjs를로드 할 때 오류가 발생했습니다.

Error: Syntax Error: Token ',' is an unexpected token at column 5 of the expression ['ar', 'Arabic'), 
... 
('zh-tw', 'Traditional Chinese']. 
at Error (unknown source) 
at throwError (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:5845:11) 
at parser (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:5839:5) 
at http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:6402:29 
at http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:4822:27 
at addTextInterpolateDirective (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:4406:27) 
at collectDirectives (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:3908:11) 
at compileNodes (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:3798:21) 
at compileNodes (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:3806:14) 
at compileNodes (http://127.0.0.1:8001/static/js/libs/angularjs/angular-1.0.0rc11.js:3806:14) angular-1.0.0rc11.js:5541 
$get 
+0

JS 파일을 다운로드 한 후에 수정 했습니까? 잘못된 구문으로 인해 파서 오류가 발생합니다. – xbonez

답변

1

시행 착오를 거쳐 결국 여기서 무슨 일이 발생했는지를 알게되었습니다. 같은 문제를 겪을 때 시간을 낭비하지 않도록 여러분과 나누는 것이 가치 있다고 생각하십시오.

interpolateProvider을 구성 할 때 잘못된 시작 ((() 및 끝 ())) 기호를 사용하는 것이 문제입니다. 시작 및 끝 기호를 다른 기호로 변경하면 오류가 사라집니다.

관련 문제