carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Error in project upon installation Error: Cannot find module './nix/nix'

Open shikhag2018 opened this issue 2 years ago • 7 comments

Describe the bug Error: Cannot find module './nix/nix' on installing project and running yarn dev

To Reproduce Install project

Run yarn install yarn dev open browser http://localhost:3000

Expected behavior Should work fine

Screenshots Screenshot from 2022-12-15 21-41-18

Info (please complete the following information):

  • OS [Linux 18.04]

Was able to resolve it by commenting these lines of code in lib/constants.js

 {
   name: 'Nix',
    mode: 'nix',
   highlight: true,
  },

  {
    name: 'Stan',
  mode: 'stan',
  highlight: true,
  },

shikhag2018 avatar Dec 15 '22 16:12 shikhag2018

I also suffered this issue and the workaround worked. Thank you.

umi0410 avatar Dec 25 '22 13:12 umi0410

@umi0410 I am glad it Worked for you

shikhag2018 avatar Dec 26 '22 08:12 shikhag2018

Seeing the same issue.

Proposed fix: Should we add a check in components/Carbon.js at Line #397 to ignore the missing file, write a log and continue without errors?

agilityhawk avatar Jan 07 '23 12:01 agilityhawk

Created a PR for this https://github.com/carbon-app/carbon/pull/1448.

skevprog avatar Feb 02 '23 12:02 skevprog

I've come across the same error upon updating my existing Carbon setup. With the generic output from start, it wasn't immediately clear what was triggering the problem. Running in dev mode, however, made the error evident, which brought me to this issue. After implementing the fix from #1448, it all appears to be working smoothly.

Thank you @skevprog!

pierow2k avatar Sep 27 '23 12:09 pierow2k

Oh, same issue, PR for this https://github.com/carbon-app/carbon/pull/1448 works well, but no one merges?

Musicminion avatar Dec 08 '23 08:12 Musicminion

Yeah. I'm not sure if this project is even actively maintained anymore.

@mfix22 - could you please take a look?

agilityhawk avatar Dec 08 '23 16:12 agilityhawk