0
CodeMirror 텍스트 편집기에 내 ANTLR4 파서를 통합하려고합니다. 내 html 파일에 다음 줄을 추가 할 때 : 나는 크롬에서 다음과 같은 오류가납니다CodeMirror에서 ANTLR 파서 사용
var antlr4 = require('antlr4/index'); // index is an ANTLR runtime file
: 그래서
Uncaught DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///home/enes/Desktop/git/text_editor_mirror/antlr4/index.js'.
at require (file:///home/enes/Desktop/git/text_editor_mirror/lib/require.js:179:10)
at file:///home/enes/Desktop/git/text_editor_mirror/index.html:411:16
XMLHttpRequest cannot load file:///home/enes/Desktop/git/text_editor_mirror/antlr4/index.js. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
, 어떻게이 문제를 해결할 수
?