Build problem using "stage-snaps:"?

Hello,

the context is :

for this i tried to apply the work arround in the snapcraft.yaml file like this :

 parts:
      code:
        # See 'snapcraft plugins'
        plugin: nil
        stage-snaps:
          - code-insiders
        override-prime: |
          set -x
          snapcraftctl prime
          # workaround from : https://github.com/microsoft/vscode/issues/3451
          find . -name 'libxcb.so.1' | xargs sed -i 's/BIG-REQUESTS/_IG-REQUESTS/'  

i don’t get the launchers in /snap/bin/ so i decided to add apps (copied from the original code-insiders snapcraft.yaml file) :

apps:
  code-insiders:
    command: electron-launch $SNAP/usr/share/code-insiders/bin/code-insiders
    common-id: code-insiders.desktop
    environment:
      DISABLE_WAYLAND: 1
      GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas

  url-handler:
    command: electron-launch $SNAP/usr/share/code-insiders/bin/code-insiders --open-url
    environment:
      DISABLE_WAYLAND: 1
      GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas

when i try to launch it from the command it run well : $SNAP/usr/share/code-insiders/bin/code-insiders but when i run via the launcher i get the following errors :

dev@dev-virtual-machine:~/snaptest/test$ /snap/bin/code-insiders
        sed: relocation error: /snap/core/current/lib/x86_64-linux-gnu/libpthread.so.0: symbol __libc_dl_error_tsd version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
        mv: relocation error: /snap/core/current/lib/x86_64-linux-gnu/libpthread.so.0: symbol __libc_dl_error_tsd version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
        mkdir: relocation error: /snap/core/current/lib/x86_64-linux-gnu/libpthread.so.0: symbol __libc_dl_error_tsd version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
        mkdir: relocation error: /snap/core/current/lib/x86_64-linux-gnu/libpthread.so.0: symbol __libc_dl_error_tsd version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
        grep: relocation error: /snap/core/current/lib/x86_64-linux-gnu/libpthread.so.0: symbol __libc_dl_error_tsd version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
        id: relocation error: /snap/core/current/lib/x86_64-linux-gnu/libpthread.so.0: symbol __libc_dl_error_tsd version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

it’s like the launcher do not have the good environment ??
m i doing something wrong ?