Question: I am trying to copy contents of a span element but I failed so far with no error in chrome:

```js
const element = document.getElementById("element");
 console.log(element.innerHTML); //consoles Data
 //below doesn't copy contents of the element to clipboard
 const node = document.createRange();
 node.selectNode(element);
 window.getSelection().removeAllRanges();
 window.getSelection().addRange(node);
 document.execCommand("copy");
```

```html
 <span id="element">Data</span>
```

Since I can see contents of the element via innerHTML, I am thinking the element is indeed accessible. Why cant I copy the text?

Answer: 
I was able to fix this in Linux by deleting the flutter\_app\_directory found in
~/.local/share/<flutter\_app\_name>

Similar actions can be found in Windows and MacOS
for macos i had to open finder then hit `command + shift + g` and paste this

> 
> `~/Library/Application Support`
> 
> 
> 

and in app package folder I found all the files