I’ve got "fullAccess" set in my manifest and I’m running PS 24.6.0/UXP 7.1.0 and using the vanilla UDT starter plugin with no other code.
Obviously the folder exists being that path is pulled directly from the active doc. That triple slash in the error looks weird to me, so I tried it getEntryWithUrl with both
(`file:${path}`)
and
(`${path}`)
but the error is the same regardless.
Is this just me having a senior moment and missing something dumb or has something changed?
@sttk3 - I know you’ve cracked this in the past, any ideas?
Treating paths as just strings is a bad practice because it depends on the specific environment; use Path module. Path modules are defined as ‘path’ in UXP and should not be overwritten with a variable of the same name.
@sttk3 actually, that still returns the same error. I’ve tried different files in various locations on the filesystem and always the same
Is there something else I’ve missed?
I tried the code below on Windows10 and it completely works.
but after I deleted requiredPermissions on manifest.json I found same error.
I think you could have problem on manifest.json.
could you update full of manifest code?