You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried installing the package [2] on my system via cloning the repo into the following path ~/.local/share/typst/packages/local/petri/0.1.0 by following the approach described in [3]
The typst compiler nonetheless gives the following error
error: package not found (searched for @local/petri:0.1.0)
┌─ ProjectPlan.typ:5:8
│
5 │ #import "@local/petri:0.1.0": *
│ ^^^^^^^^^^^^^^^^^^^^
System information can be found in the following screenshot
As commented on Discord, this seems to be a problem with Typst's snap package, which currently seems to excessively restrict the directories Typst can access.
PR #1 does unfortunately not work to resolve this. I have tried working on it but had no success. My post about it on the Snapcraft forum did not get any replies. Hence, until someone with more experience in this area chimes in, we are stuck with this behavior.
You will need to install Typst from another source (e.g. cargo binstall or the prebuilt binaries) to work around this issue.
Activity
[-]Cant import local package [/-][+]Can't import local package [/+]PgBiel commentedon Aug 17, 2024
As commented on Discord, this seems to be a problem with Typst's snap package, which currently seems to excessively restrict the directories Typst can access.
[-]Can't import local package [/-][+]Typst Snap package can't access local packages[/+]SalahEddineGhamri commentedon Jun 8, 2025
Any update on this, I am facing this issue and it is annoying.
reknih commentedon Jun 9, 2025
PR #1 does unfortunately not work to resolve this. I have tried working on it but had no success. My post about it on the Snapcraft forum did not get any replies. Hence, until someone with more experience in this area chimes in, we are stuck with this behavior.
You will need to install Typst from another source (e.g.
cargo binstallor the prebuilt binaries) to work around this issue.