XLSX填充:“错误:找不到中央目录的末尾:这是一个zip文件吗?” -在角度

时间:2018-12-10 17:11:13

标签: javascript angular xlsx

XLSX填充:“错误:找不到中央目录的末尾:这是一个zip文件吗?” -在Angular中

使用XSLX Populate时,Angular会抛出错误,我很难受。

错误:

core.js:1449 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'drivers'
Error: Cannot match any routes. URL Segment: 'drivers'

我的代码包含在用于模板.XSLX文件的阅读器中,然后使用Firecloud数据库中的数据进行填充。

代码:

main.c8862013051d6e746aa1.js:1 ERROR Error: Uncaught (in promise): Error: Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html
Error: Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html
    at u.readEndOfCentral (main.c8862013051d6e746aa1.js:1)
    at u.load (main.c8862013051d6e746aa1.js:1)
    at main.c8862013051d6e746aa1.js:1
    at e.invoke (polyfills.f6ae3e8b63939c618130.js:1)
    at Object.onInvoke (main.c8862013051d6e746aa1.js:1)
    at e.invoke (polyfills.f6ae3e8b63939c618130.js:1)
    at t.run (polyfills.f6ae3e8b63939c618130.js:1)
    at polyfills.f6ae3e8b63939c618130.js:1
    at e.invokeTask (polyfills.f6ae3e8b63939c618130.js:1)
    at Object.onInvokeTask (main.c8862013051d6e746aa1.js:1)
    at j (polyfills.f6ae3e8b63939c618130.js:1)
    at j (polyfills.f6ae3e8b63939c618130.js:1)
    at polyfills.f6ae3e8b63939c618130.js:1
    at e.invokeTask (polyfills.f6ae3e8b63939c618130.js:1)
    at Object.onInvokeTask (main.c8862013051d6e746aa1.js:1)
    at e.invokeTask (polyfills.f6ae3e8b63939c618130.js:1)
    at t.runTask (polyfills.f6ae3e8b63939c618130.js:1)
    at d (polyfills.f6ae3e8b63939c618130.js:1)
    at t.invokeTask [as invoke] (polyfills.f6ae3e8b63939c618130.js:1)
    at _ (polyfills.f6ae3e8b63939c618130.js:1)

我已经尝试过将文件存储在其他位置,但是多次尝试后都没有成功。

0 个答案:

没有答案