最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Uncaught DOMException: Failed to construct 'Worker': Script at papaparse.mi.js - Stack Overflow

programmeradmin3浏览0评论

I tried to play with importing CSV data as xAPI Statement in LRS. I tired to followed the step stated. But i cannot fletch the data. It throws a error." Uncaught DOMException: Failed to construct 'Worker': Script atUncaught DOMException: Failed to construct 'Worker': Script at papaparse.min.js

Here is the github link for it which i tried.

This is the error that i am getting papaparse.min.js:6 Uncaught DOMException: Failed to construct 'Worker': Script at 'file:///Users/dassintern/Documents/ayash/csv-to-xapi-master/js/lib/papaparse.min.js?papaworker' cannot be accessed from origin 'null'. at f (file:///Users/dassintern/Documents/ayash/csv-to-xapi-master/js/lib/papaparse.min.js:6:11265) at Object.t [as parse] (file:///Users/dassintern/Documents/ayash/csv-to-xapi-master/js/lib/papaparse.min.js:6:91) at HTMLInputElement. (file:///Users/dassintern/Documents/ayash/csv-to-xapi-master/js/csv-parser-extension.js:60:8) at HTMLInputElement.dispatch (.11.2/jquery.min.js:3:8549) at HTMLInputElement.r.handle (.11.2/jquery.min.js:3:5252)

I tried to play with importing CSV data as xAPI Statement in LRS. I tired to followed the step stated. But i cannot fletch the data. It throws a error." Uncaught DOMException: Failed to construct 'Worker': Script atUncaught DOMException: Failed to construct 'Worker': Script at papaparse.min.js

Here is the github link for it which i tried. https://github.com/mariocoski/csv-to-xapi

This is the error that i am getting papaparse.min.js:6 Uncaught DOMException: Failed to construct 'Worker': Script at 'file:///Users/dassintern/Documents/ayash/csv-to-xapi-master/js/lib/papaparse.min.js?papaworker' cannot be accessed from origin 'null'. at f (file:///Users/dassintern/Documents/ayash/csv-to-xapi-master/js/lib/papaparse.min.js:6:11265) at Object.t [as parse] (file:///Users/dassintern/Documents/ayash/csv-to-xapi-master/js/lib/papaparse.min.js:6:91) at HTMLInputElement. (file:///Users/dassintern/Documents/ayash/csv-to-xapi-master/js/csv-parser-extension.js:60:8) at HTMLInputElement.dispatch (https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js:3:8549) at HTMLInputElement.r.handle (https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js:3:5252)

Share Improve this question asked Apr 8, 2019 at 23:45 texttext 1031 gold badge1 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 17

If you are seeing this in Chrome then the answer probably has to do with loading from a local filesystem rather than over HTTP. The key is the message "cannot be accessed from origin 'null'" where a local file:// load will have a null origin. See Chrome can't load web worker.

发布评论

评论列表(0)

  1. 暂无评论