reka.js
reka.js copied to clipboard
Unable to do pnpm install in project
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?
Latest update
On Thu 8 Feb 2024 at 09:19, Prev Wong @.***> wrote:
What version of pnpm/node are you running on?
— Reply to this email directly, view it on GitHub https://github.com/prevwong/reka.js/issues/144#issuecomment-1933487717, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4HG7YBLH3L6IG4ZHDPZL3YSR4B7AVCNFSM6AAAAABCWZXEQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZTGQ4DONZRG4 . You are receiving this because you authored the thread.Message ID: @.***>
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 :laughing: