S
SolidJS•9mo 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•9mo ago
you'll have to build
Maciek50322
Maciek50322OP•9mo 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•9mo ago
Weird, I just cloned, built, and generated and it worked
Maciek50322
Maciek50322OP•9mo ago
can you list your every step here? should I build before generate? only build outside site folder?
REEEEE
REEEEE•9mo ago
build outside the site folder then go into the site folder and generate
Maciek50322
Maciek50322OP•9mo ago
and pnpm install before build?
REEEEE
REEEEE•9mo ago
yes
Maciek50322
Maciek50322OP•9mo ago
still the same, but after build I noticed i get this, so I guess nothing built
No description
REEEEE
REEEEE•9mo 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
Maciek50322OP•9mo ago
I do the same, yes in solid-primitives but I clone from fork
REEEEE
REEEEE•9mo ago
that should be fine maybe try with npm instead of pnpm
Maciek50322
Maciek50322OP•9mo ago
installing with npm throws this but with --force it goes through
No description
Maciek50322
Maciek50322OP•9mo ago
then build again shows this
No description
Maciek50322
Maciek50322OP•9mo ago
btw node v20.11.1 pnpm v8.15.4 npm v10.0.0
REEEEE
REEEEE•9mo ago
hmm can you try with cloning the original repo instead of the fork?
Maciek50322
Maciek50322OP•9mo ago
I tried it was the same, I'll try again yes it's the same
REEEEE
REEEEE•9mo ago
hmmm I don't think there's anything special about solid-primitives, are you able to clone, build, and run a different repo?
Maciek50322
Maciek50322OP•9mo ago
never built any, do you have example repo?
Maciek50322
Maciek50322OP•9mo ago
with pnpm run build:vite then pnpm run dev it works
REEEEE
REEEEE•9mo ago
hmm I have no clue what the issue is tbh if you're able to build and run solid-site, solid-primitives should be fine
Maciek50322
Maciek50322OP•9mo ago
well one does build with vite, other with turbo, idk if there's difference also I removed everything pnpm related, reinstalled, and still nothing
REEEEE
REEEEE•9mo ago
try removing the node_modules and .turbo folders
Maciek50322
Maciek50322OP•9mo ago
Yes this was the first thing I did, also after each clone they arent there, so this doesn't work Also, because I read in the error ../packages/active-element/src/index.ts:3:65: ERROR: Could not resolve "@solid-primitives/utils" checking inside this folder I get same error in vs code
Maciek50322
Maciek50322OP•9mo ago
No description
Maciek50322
Maciek50322OP•9mo ago
and for this package the package.json has this
Maciek50322
Maciek50322OP•9mo ago
No description
Maciek50322
Maciek50322OP•9mo ago
something somehow doesn't recognize this
REEEEE
REEEEE•9mo ago
it doesn't recognize it because it isn't built but I'm not sure what's causing the build to not run
Maciek50322
Maciek50322OP•9mo ago
I ran npx turbo run build and things are happening
REEEEE
REEEEE•9mo ago
👀 maybe turbo was needed on your system I guess
Maciek50322
Maciek50322OP•9mo ago
Yes it works
REEEEE
REEEEE•9mo ago
wow lol
Maciek50322
Maciek50322OP•9mo ago
i still get no build from just pnpm run build
Maciek50322
Maciek50322OP•9mo ago
No description
Maciek50322
Maciek50322OP•9mo ago
probably filter does something also I'm on windows
REEEEE
REEEEE•9mo ago
possible windows issue
Maciek50322
Maciek50322OP•9mo ago
ok thanks anyway
thetarnav
thetarnav•9mo ago
what on earth
Want results from more Discord servers?
Add your server