prevwong/reka.js

Unable to do pnpm install in project

benazoulaydev opened this issue · 8 comments

Hi, I keep getting an issue while running pnpm install or pnpm build when I clone the whole project

@rekajs/codemirror:build:   1:1  error  Resolve error: Cannot find module './lib/sync' 



 Tasks:    6 successful, 7 total
Cached:    3 cached, 7 total
  Time:    6.732s 
Failed:    @rekajs/codemirror#build

 ERROR  run failed: command  exited (1)
 ELIFECYCLE  Command failed with exit code 1.
 

What version of pnpm/node are you running on?

Could you try the following and see if this works:

pnpm install --ignore-scripts
pnpm build:packages

 ELIFECYCLE  Command failed with exit code 1.
@rekajs/codemirror:build: ERROR: "generate-lezer-parser" exited with 1.
@rekajs/codemirror:build:  ELIFECYCLE  Command failed with exit code 1.
@rekajs/codemirror:build: ERROR: command finished with error: command (/Users/dev/Downloads/reka.js-main 2/packages/codemirror) /usr/local/bin/pnpm run build exited (1)
@rekajs/codemirror#build: command (/Users/dev/Downloads/reka.js-main 2/packages/codemirror) /usr/local/bin/pnpm run build exited (1)

Tasks: 3 successful, 5 total
Cached: 0 cached, 5 total
Time: 6.744s
Failed: @rekajs/codemirror#build

ERROR run failed: command exited (1)
 ELIFECYCLE  Command failed with exit code 1.

@rekajs/codemirror:build:  ELIFECYCLE  Command failed with exit code 1.
@rekajs/codemirror:build:  ELIFECYCLE  Command failed with exit code 1.
@rekajs/codemirror:build: ERROR: "generate-lezer-parser" exited with 1.
@rekajs/codemirror:build:  ELIFECYCLE  Command failed with exit code 1.

@rekajs/codemirror:build: 1:1 error Resolve error: Cannot find module './lib/sync'

Could you try the following and see if this works:

pnpm install --ignore-scripts
pnpm build:packages

This helped, but then pnpm run dev nextjs error'd on module not found for the packages in packages directory such as @rekajs/react-code-editor.

Even now pnpm install errors module not found on trying to locate tsc in the wrong folder when running post-install script for getdocs-ts. Might have to do with being on windows, I'm usually on linux, haven't tried installing [reka.js] on linux yet.

pnpm install + pnpm run dev worked fine on linux, who would've thought 😆