question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with compiling on Linux

See original GitHub issue

While working on the prevous pull requests, I encountered a number of problems while trying to compile with my Linux machine (it worked on my dual boot windows OS just fine, but I shouldn’t have had to switch over just to test the code).

problem installing:

npm i # right after cloning

output:

npm ERR! code 1
npm ERR! path vscode-hexeditor/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js

workaround:

npm i --ignore-scripts
node node_modules/esbuild/install.js

(I also tried clearing npm cache)

problem compiling:

npm run compile

output:

✘ [ERROR] [plugin linaria] The service was stopped
    
    node_modules/@linaria/esbuild/node_modules/esbuild/lib/main.js:1258:28:
      1258 │             return callback(new Error(error), null);
           ╵                             ^
    
    at vscode-hexeditor/node_modules/@linaria/esbuild/node_modules/esbuild/lib/main.js:1258:29
    at vscode-hexeditor/node_modules/@linaria/esbuild/node_modules/esbuild/lib/main.js:611:9
    at Socket.afterClose (vscode-hexeditor/node_modules/@linaria/esbuild/node_modules/esbuild/lib/main.js:589:7)
    at Socket.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
    
  This error came from the "onLoad" callback registered here:
    
    node_modules/@linaria/esbuild/lib/index.js:54:12:
      54 │       build.onLoad({
         ╵             ~~~~~~
    
    at setup (vscode-hexeditor/node_modules/@linaria/esbuild/lib/index.js:54:13)
    at handlePlugins (vscode-hexeditor/node_modules/esbuild/lib/main.js:814:23)
    at Object.buildOrServe (vscode-hexeditor/node_modules/esbuild/lib/main.js:1108:7)
    at vscode-hexeditor/node_modules/esbuild/lib/main.js:1961:17
    at new Promise (<anonymous>)
    at Object.build (vscode-hexeditor/node_modules/esbuild/lib/main.js:1960:14)
    at Object.build (vscode-hexeditor/node_modules/esbuild/lib/main.js:1814:51)
    at Object.<anonymous> (vscode-hexeditor/.esbuild.config.js:60:9)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)

I couldn’t figure out how to get it working after this, so I tried a different operating system (win 10) and got it working on that. Any help on this would be appreciated.


Possibly relevant information:

os: Ubuntu 20.04 node: v16.16.0 npm: v8.11.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
connor4312commented, Aug 8, 2022

Hm, that’s not particularly helpful. We can probably just try updating Linaria, we’re on an old beta version.

0reactions
connor4312commented, Dec 8, 2022

Updated Linaria

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linux compiler problem
When compiling the C and C++ samples on a 64-bit Linux® operating system, the samples might fail to build with one of the...
Read more >
Compile error when trying to run make
Problem solved. The problem was that the Makefile was ready to compile in a 32 bits machines but my computer is 64 bits....
Read more >
Problems with Compiling a C++ program - linux
I am trying to compile a simple Hello World C++ program on my new Conda environment, but it returns a exit status as...
Read more >
[Solved] Having problem compiling on linux
An easy way to run programs on Linux is from the terminal. Open it, navigate to the directory containing the compiled programs (using...
Read more >
Problem in compilation. - The UNIX and Linux Forums
I am compiling a software named wine When i run make then at the end following error generated. DVAPI32_ -foversion.res version.rc ld.so.1: ../../tools/wrc/wrc: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found