Export not working on webix spreadsheet

edited May 14 in Technical questions

Hello,

I want to ask for support about a problem I am facing when trying to export data from webix spreadsheet. I am working on localhost for test purposes and try to export data I get the following link generation http://localhost:#####/d7489d40-cd92-4336-aec5-d17cca13b9bf but the export is not happening. Here I have a warning in DevTools console, which is the following: "DevTools failed to load SourceMap: Could not load content for http://cdn.webix.com/extras/dist/xlsx.core.min.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE".

I also tried exporting data offline as it is shown in the documentation. I downloaded everything in the github repository and renamed it to extras and then added it to my project. After that I set webix.env.cdn = '/js/codebase'; where "/js/codebases" is the place where the extras folder is placed. When I again try to export data, I get the same link in the address bar. Here the warning, when trying to export data, is almost the same, but the path is different, now the local path on my computer. This is the exact warning message "DevTools failed to load SourceMap: Could not load content for http://localhost:#####/js/codebase/extras/dist/xlsx.core.min.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE".

Can someone tell me what's wrong with the export in the spreadsheet and if I am missing something, so to fix it.

Best regards,
Simeon

Comments

  • Hello @Simeon ,
    Most likely the problem is on the path. Please note that the path is relative to the place it is being called from, so bear that in mind.
    You can verify the complete path the sources are being pulled from using Developer Tools in your browser. For instance, in Chrome, if you navigate to the "Network tab/JS" and try to import a file, you will see that the file is being pulled from PATH/extras/xlsx.core.styles.min.js, where PATH is the path set via the webix.env.cdn variable.

    This is the exact warning message "DevTools failed to load SourceMap: Could not load content for http://localhost:#####/js/codebase/extras/dist/xlsx.core.min.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE".

    That's because Chrome added support for source maps.
    Go to the developer tools (F12 in the browser), then go to Settings.
    Then, look for Sources, and disable the options: "Enable javascript source maps" "Enable CSS source maps". If you do that, that would get rid of the warnings.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion