[DRE-maint] Bug#1102092: Terser::Error: Unexpected token: punc (.) (Terser::Error)

Pirate Praveen praveen at debian.org
Fri Apr 11 21:06:33 BST 2025


On Fri, 11 Apr 2025 18:07:41 +0530 Pirate Praveen <praveen at debian.org> 
wrote:
> On Sat, 05 Apr 2025 04:05:22 +0530 Pirate Praveen <praveen at debian.org> 
> wrote:
> > Package: gitlab
> > Version: 17.5.5-6
> > Severity: grave
> > X-Debbugs-Cc: praveen at debian.org
> > 
> > Dear Maintainer,
> > 
> > When installing gitlab 17.5.5-6
> gitlab 17.6.5 moves further and fails with these errors,
> 
> WARNING in 
> /var/lib/gitlab/node_modules/@graphiql/toolkit/dist/cjs/create-fetcher/lib.js
> Module not found: Error: Can't resolve 'graphql-ws' in 
> '/var/lib/gitlab/node_modules/@graphiql/toolkit/dist/cjs/create-fetcher'
>   @ 
> /var/lib/gitlab/node_modules/@graphiql/toolkit/dist/cjs/create-fetcher/lib.js
>   @ 
> /var/lib/gitlab/node_modules/@graphiql/toolkit/dist/cjs/create-fetcher/createFetcher.js
>   @ 
> /var/lib/gitlab/node_modules/@graphiql/toolkit/dist/cjs/create-fetcher/index.js
>   @ /var/lib/gitlab/node_modules/@graphiql/toolkit/dist/cjs/index.js
>   @ /var/lib/gitlab/node_modules/@graphiql/react/dist/index.mjs
>   @ /var/lib/gitlab/node_modules/graphiql/esm/index.js
>   @ ./entrypoints/graphql_explorer.js
> 
> ERROR in unable to locate '/etc/node_modules/pdfjs-dist-v4/cmaps' glob
> 
> ERROR in unable to locate 
> '/etc/node_modules/pdfjs-dist-v3/legacy/build/pdf.worker.min.js' glob
> 
> ERROR in unable to locate 
> '/etc/node_modules/pdfjs-dist-v4/legacy/build/pdf.worker.min.mjs' glob
> 
> ERROR in unable to locate '/etc/node_modules/pdfjs-dist-v3/cmaps' glob
> 


Two places it is trying to use pdfjs are in 
app/assets/javascripts/pdf/index.vue and config/pdfjs.constants.js

I think the error is coming since it is trying to find pdfjs-dist 
relative to config directory, which is a symbolic link to /etc/gitlab.

Hi Jeremy, any ideas to move forward here?

The actual node module is present in /var/lib/gitlab/node_modules which 
is symbolic linked to /usr/share/gitlab/node_modules as well.

Trying to balance between FHS/debian policy, yarn and ruby conflicting 
expectations on which directories should be writable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x8F53E0193B294B75.asc
Type: application/pgp-keys
Size: 4938 bytes
Desc: OpenPGP public key
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20250412/c119e124/attachment-0001.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20250412/c119e124/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list