S
SolidJS•6mo ago
Maciek50322

Need help with running solid-community/solid-primitives

- clone solid-community/solid-primitives - pnpm install - pnpm run dev - throws something like "packages not found, did you forget to run pnpm run generate?" - in /site run pnpm run generate - throws many errors like
...
../packages/pointer/src/index.ts:1:36: ERROR: Could not resolve "@solid-primitives/event-listener"
../packages/pointer/src/index.ts:2:30: ERROR: Could not resolve "@solid-primitives/utils/immutable"
...
...
../packages/pointer/src/index.ts:1:36: ERROR: Could not resolve "@solid-primitives/event-listener"
../packages/pointer/src/index.ts:2:30: ERROR: Could not resolve "@solid-primitives/utils/immutable"
...
- pnpm run dev - launches but with errors (image) What I'm doing wrong?
No description
39 Replies
REEEEE
REEEEE•6mo ago
you'll have to build
Maciek50322
Maciek50322•6mo ago
build throws [commonjs--resolver] Failed to resolve entry for package "@solid-primitives/scheduled". The package may have incorrect main/module/exports specified in its package.json. launch error on site is the same
REEEEE
REEEEE•6mo ago
Weird, I just cloned, built, and generated and it worked
Maciek50322
Maciek50322•6mo ago
can you list your every step here? should I build before generate? only build outside site folder?
REEEEE
REEEEE•6mo ago
build outside the site folder then go into the site folder and generate
Maciek50322
Maciek50322•6mo ago
and pnpm install before build?
REEEEE
REEEEE•6mo ago
yes
Maciek50322
Maciek50322•6mo ago
still the same, but after build I noticed i get this, so I guess nothing built
No description
REEEEE
REEEEE•6mo ago
huh are you in the root folder like in the solid-primitives folder
git clone https://github.com/solidjs-community/solid-primitives
cd solid-primitives
pnpm install
pnpm build
cd site/
pnpm generate
cd ..
pnpm dev
git clone https://github.com/solidjs-community/solid-primitives
cd solid-primitives
pnpm install
pnpm build
cd site/
pnpm generate
cd ..
pnpm dev
those are the steps I did
Maciek50322
Maciek50322•6mo ago
I do the same, yes in solid-primitives but I clone from fork
REEEEE
REEEEE•6mo ago
that should be fine maybe try with npm instead of pnpm
Maciek50322
Maciek50322•6mo ago
installing with npm throws this but with --force it goes through
No description
Maciek50322
Maciek50322•6mo ago
then build again shows this
No description
Maciek50322
Maciek50322•6mo ago
btw node v20.11.1 pnpm v8.15.4 npm v10.0.0
REEEEE
REEEEE•6mo ago
hmm can you try with cloning the original repo instead of the fork?
Want results from more Discord servers?
Add your server