Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carbon app is not running locally #1483

Open
p3n7a90n opened this issue Jul 25, 2023 · 2 comments
Open

Carbon app is not running locally #1483

p3n7a90n opened this issue Jul 25, 2023 · 2 comments

Comments

@p3n7a90n
Copy link

p3n7a90n commented Jul 25, 2023

Title
I am getting the below error while running carbon latest released version(4.9.10) locally.

Screenshots
image
image

There seems to be some problem with the codemirror.

I tried few suggestions based on the error but none of them worked
Any suggestions on how can I resolve this.

@daniellutz
Copy link

To install it properly, you can do this:

$ asdf global nodejs latest
$ rm -rf node_modules/
$ yarn install

Before running Carbon, you will need to remove some languages (Nix and Stan) from lib/constants.js file:

...
  {
    name: 'Nim',
    mode: 'nim',
    custom: true,
    highlight: true,
  },
- {
-   name: 'Nix',
-   mode: 'nix',
-   highlight: true,
- },
  {
    name: 'Objective C',
    mode: 'clike',
    mime: 'text/x-objectivec',
    short: 'objectivec',
    highlight: true,
  },
...
  {
    name: 'SQL',
    mode: 'sql',
    highlight: true,
  },
- {
-   name: 'Stan',
-   mode: 'stan',
-   highlight: true,
- },
  {
    name: 'Stylus',
    mode: 'stylus',
    mime: 'stylus',
    highlight: true,
  },
...

Now you can run it by calling the next binary from your node_modules directory:

$ ./node_modules/.bin/next dev

@kevin262516
Copy link

To install it properly, you can do this:

$ asdf global nodejs latest
$ rm -rf node_modules/
$ yarn install

Before running Carbon, you will need to remove some languages (Nix and Stan) from lib/constants.js file:

...
  {
    name: 'Nim',
    mode: 'nim',
    custom: true,
    highlight: true,
  },
- {
-   name: 'Nix',
-   mode: 'nix',
-   highlight: true,
- },
  {
    name: 'Objective C',
    mode: 'clike',
    mime: 'text/x-objectivec',
    short: 'objectivec',
    highlight: true,
  },
...
  {
    name: 'SQL',
    mode: 'sql',
    highlight: true,
  },
- {
-   name: 'Stan',
-   mode: 'stan',
-   highlight: true,
- },
  {
    name: 'Stylus',
    mode: 'stylus',
    mime: 'stylus',
    highlight: true,
  },
...

Now you can run it by calling the next binary from your node_modules directory:

$ ./node_modules/.bin/next dev

I modified the configuration according to the suggestions, but I still get the error

  • System: window 10
  • Node: v18.12.0

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants