[Pkg-javascript-devel] Bug#980406: node-xterm: likely broken build - JSON.parse: unexpected character at line 1 column 1 of the JSON data Resource

Pirate Praveen praveen at onenetbeyond.org
Mon Jan 18 19:55:16 GMT 2021


Package: node-xterm
Version: 3.8.1-4
Severity: important

When using packaged version of node-xterm in gitlab, the browser error 
console has these errors and it break web IDE of gitlab (the progress 
circle keeps spinning).

Source map error: Error: JSON.parse: unexpected character at line 1 
column 1 of the JSON data Resource URL: 
http://gitlab-buster.lxc/assets/webpack/commons-pages.ide-pages.projects.environments.terminal-pages.projects.jobs.terminal.650166e5.chunk.js 
Source Map URL: 
commons-pages.ide-pages.projects.environments.terminal-pages.projects.jobs.terminal.650166e5.chunk.js.map

Source map error: Error: JSON.parse: unexpected character at line 1 
column 1 of the JSON data Resource URL: 
http://gitlab-buster.lxc/assets/webpack/pages.ide.da3ccd82.chunk.js 
Source Map URL: pages.ide.da3ccd82.chunk.js.map

Source map error: Error: JSON.parse: unexpected character at line 1 
column 1 of the JSON data Resource URL: 
http://gitlab-buster.lxc/assets/webpack/runtime.6c5d081d.bundle.js 
Source Map URL: runtime.6c5d081d.bundle.js.map

When switching to npmjs.com distributed xterm, the error is gone.

gitlab need xterm 3.14.5, so it is likely a version mismatch as well.

I will check with xterm 3.8.1 from npmjs.com to confirm if it is a 
version mismatch or not. If it is a version mismatch I'll retitle this 
as a request for new upstream version.



More information about the Pkg-javascript-devel mailing list