0

Now I have tried to make csv file from Visual Studio Code. I found a code to make csv file from editor. However, the code is not working. Please give me advise to resolve a problem in the code.

*Win 10 pro 64 bit, VScode: 1.45.1, node.js: 13.14.0, clasp: 2.3.0

let blob = new Blob(['ABC'],{type:"text/csv"});
let link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = 'made from vscode.csv';
link.click();

I modified first sentence. text/plan to text/csv

12
  • What do you mean by not working? Can you please explain e.g. did you get any error message? Thanks! Commented May 18, 2020 at 12:39
  • First of all, this is not correct: let blob = new Blob(['ABC'],{type:"text/plan"});. It should be text/csv. Commented May 18, 2020 at 12:41
  • Thank you for the reply. I have a error in debug console. The error is ReferenceError: Blob is not defined. Commented May 18, 2020 at 12:42
  • Thank you for additional comment. I modified the code but same error is continued. Please give me more advice. Thanks a lot. Commented May 18, 2020 at 12:48
  • The error doesn't seem to reproducible. It works fine for me... Commented May 18, 2020 at 12:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.