I’m trying to package a node.js application, it uses yarn, node.js version 12 and core20 in strict confinement.
Using plugins is not possible since nodejs plugin only works on core18 and npm plugin on core20 lacks yarn.
Using stage-packages for nodejs is not successful since it brings node.js version 10.
Using stage-snaps with node/12/stable or even node/14/stable results in AppArmor errors since it calls to paths in core snap rather than core20.
Last resort is copying a version of node.js manually and setting the $PATH, it works but still generates a lot of Seccomp error logs.
Is there any way to fix the AppArmor issues with version of core being used by node snap?
Or is there a better solution?