solid icon indicating copy to clipboard operation
solid copied to clipboard

Can't build SolidJS on Windows

Open lostpebble opened this issue 2 years ago • 2 comments

Describe the bug

Hi,

I've been trying to build SolidJS today, but can't seem to get it to work.

Following the guidelines in CONTRIBUTING.md, I run pnpm install and it seems to finish- but it does have some peer dependency issues:

F:\dev\github\solid> pnpm install
Scope: all 6 workspace projects
 WARN  A pnpm-lock.yaml file exists. The current configuration prohibits to read or write a lockfile
Already up to date
Progress: resolved 379, reused 365, downloaded 0, added 0, done
 ERR_PNPM_PEER_DEP_ISSUES  Unmet peer dependencies

.
├─┬ jest-ts-webcompat-resolver 1.0.0
│ └── ✕ missing peer jest-resolve@"*"
└─┬ solid-jest 0.2.0
  └── ✕ missing peer babel-preset-solid@^1.0.0
Peer dependencies that should be installed:
  babel-preset-solid@^1.0.0  jest-resolve@"*"

packages/babel-preset-solid
└─┬ babel-plugin-jsx-dom-expressions 0.34.5
  ├── ✕ missing peer @babel/core@^7.0.0
  └─┬ @babel/plugin-syntax-jsx 7.18.6
    └── ✕ missing peer @babel/core@^7.0.0-0
Peer dependencies that should be installed:
  @babel/core@">=7.0.0 <8.0.0"

hint: If you want peer dependencies to be automatically installed, add "auto-install-peers=true" to an .npmrc file at the root of your project.
hint: If you don't want pnpm to fail on peer dependency issues, add "strict-peer-dependencies=false" to an .npmrc file at the root of your project.

After that I try and build the project with pnpm run build, but unfortunately that doesn't work:

F:\dev\github\solid> pnpm run build

> [email protected] build F:\dev\github\solid
> turbo run build

←[91m←[1;31;7m ERROR ←[0m←[31m error preparing engine: the given task has not been registered←[0m←[0m
←[41m←[30m ELIFECYCLE ←[39m←[49m ←[31mCommand failed with exit code 1.←[39m

Is there something I'm doing wrong? Or is the build maybe not compatible with Windows ?

Your Example Website or App

https://github.com/solidjs/solid

Steps to Reproduce the Bug or Issue

  1. Clone the fresh repository
  2. Run pnpm install
  3. Run pnpm run build

Expected behavior

It builds as expected.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Version: latest main branch

Additional context

No response

lostpebble avatar Sep 06 '22 13:09 lostpebble

Look like turborepo's issue. build fine at macOS.

https://github.com/vercel/turborepo/blob/429d0522f6ad0b1019d19c1dc4f09f1a19b7a34a/cli/internal/core/scheduler.go#L15

Genuifx avatar Sep 06 '22 14:09 Genuifx

The error certainly comes from turborepo- but it could also be that something it requires to run is not setup properly on solid's side. "the given task has not been registered".

Upon running pnpm install inside WSL (linux) - everything installed without issue and there are no peer dependency issues- rather strange. Might be some other dependency build tools which are failing in Windows.

I've now managed to get it to work and build completely on WSL - so this is definitely a Windows issue it seems.

lostpebble avatar Sep 06 '22 15:09 lostpebble

I tried it in my Windows system, but no errors found. I used the git bash as my terminal instead of the power shell.

Flower-F avatar Oct 01 '22 09:10 Flower-F

I tried it in my Windows system, but no errors found. I used the git bash as my terminal instead of the power shell.

FWIW - I can also build Solid source turborepo in Windows 10 (Powershell 7.2/5.2).
May no longer be an issue?

node - 16.15.0 npm - 8.7.0 pnpm - 7.13.5

mikekidder avatar Oct 18 '22 22:10 mikekidder

@lostpebble is this still an issue/blocking? Not really sure what to do with this one. Lacking other reports and realistically no one really looking into I'm tempted to close.

ryansolid avatar Dec 12 '22 20:12 ryansolid

I can also build on windows with powershell. I think that you should close this issue for now and if @lostpebble says he still can't build we can reopen it.

orenelbaum avatar Dec 19 '22 21:12 orenelbaum

Since WSL & WSL2 I haven't built anything directly in Windows.

This seems to be a Turbo Repo problem. Maybe related to this? https://github.com/vercel/turbo/issues/2291

aifrim avatar Dec 20 '22 08:12 aifrim

Either way no one can reproduce the problem on windows so it's irrelevant at this point.

orenelbaum avatar Dec 20 '22 09:12 orenelbaum

I just tried to build on Windows again, and the issue seems to have been resolved. I used PowerShell (I've always been using it, even with the original error).

So, thanks- I'll close this one.

lostpebble avatar Dec 20 '22 09:12 lostpebble