How I solve the failed to get path from problem?
I has this in my JS
const file = await open({
multiple: false,
directory: false,
filters: [{ name: "CSV", extensions: ["csv"] }],
});
if (!file) return;
console.log(typeof file);
const dataFile = await readTextFile(file);
In my capabilites/default.json I has this permissions
"permissions": [
"core:default",
"shell:allow-open",
"dialog:allow-ask",
"dialog:allow-confirm",
"dialog:allow-message",
"dialog:allow-open",
"dialog:allow-save",
"fs:default",
"fs:read-all",
"fs:write-all",
{
"identifier": "fs:scope",
"allow": [
{
"path": "**",
"requireLiteralLeadingDot": false
}
]
}