solidjs / solid-start

SolidStart, the Solid app framework
https://start.solidjs.com
MIT License
4.93k stars 371 forks source link

[Windows][Bug?]: Broken starter #1545

Open stevemk42 opened 2 weeks ago

stevemk42 commented 2 weeks ago

Duplicates

Latest version

Current behavior 😯

Hello here. This may be a silly question, but my installation is broken from the start. After npm or pnpm (i tried both), hop in the directory and running npm i / pnpm i, I get a warning about 7 dependencies problem:

7 deprecated subdependencies found: are-we-there-yet@2.0.0, gauge@3.0.2, glob@7.2.3, glob@8.1.0, inflight@1.0.6, npmlog@5.0.1, rimraf@3.0.2 Then when install completed, npm run dev / pnpm run dev return an http 500, with this at localhost:3000:

{ "statusCode": 500, "stack": [] }

and this in my terminal:

12:17:19 [vite] Error when evaluating SSR module /@fs/E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:
|- Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11)

12:17:19 [vite] Error when evaluating SSR module /@fs/E:/2024/SolidStart/solid-project/node_modules/.pnpm/@solidjs+start@1.0.1_rollup@4.18.0_solid-js@1.8.17_vinxi@0.3.11_@opentelemetry+api@1.9.0_@typ_kcf5e2yfvx3itms7hstcfsdd2e/node_modules/@solidjs/start/dist/router/routes.js:       
|- Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11)

12:17:19 [vite] Error when evaluating SSR module /@fs/E:/2024/SolidStart/solid-project/node_modules/.pnpm/@solidjs+start@1.0.1_rollup@4.18.0_solid-js@1.8.17_vinxi@0.3.11_@opentelemetry+api@1.9.0_@typ_kcf5e2yfvx3itms7hstcfsdd2e/node_modules/@solidjs/start/dist/router/FileRoutes.js:   
|- Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11)

12:17:19 [vite] Error when evaluating SSR module /@fs/E:/2024/SolidStart/solid-project/node_modules/.pnpm/@solidjs+start@1.0.1_rollup@4.18.0_solid-js@1.8.17_vinxi@0.3.11_@opentelemetry+api@1.9.0_@typ_kcf5e2yfvx3itms7hstcfsdd2e/node_modules/@solidjs/start/dist/router/index.jsx:       
|- Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11)

12:17:19 [vite] Error when evaluating SSR module /src/app.tsx:
|- Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11)

12:17:19 [vite] Error when evaluating SSR module /@fs/E:/2024/SolidStart/solid-project/node_modules/.pnpm/@solidjs+start@1.0.1_rollup@4.18.0_solid-js@1.8.17_vinxi@0.3.11_@opentelemetry+api@1.9.0_@typ_kcf5e2yfvx3itms7hstcfsdd2e/node_modules/@solidjs/start/dist/server/StartServer.jsx: 
|- Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11)

12:17:19 [vite] Error when evaluating SSR module /@fs/E:/2024/SolidStart/solid-project/node_modules/.pnpm/@solidjs+start@1.0.1_rollup@4.18.0_solid-js@1.8.17_vinxi@0.3.11_@opentelemetry+api@1.9.0_@typ_kcf5e2yfvx3itms7hstcfsdd2e/node_modules/@solidjs/start/dist/server/index.jsx:       
|- Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11)

12:17:19 [vite] Error when evaluating SSR module /src/entry-server.tsx:|- Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11)

12:17:19 [vite] Error when evaluating SSR module #vinxi/handler/ssr:
|- Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11)

[h3] [unhandled] H3Error: Should be provided by compiler
    at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
    at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11) {
  cause: Error: Should be provided by compiler
      at eval (E:/2024/SolidStart/solid-project/node_modules/.pnpm/vinxi@0.3.11_@opentelemetry+api@1.9.0_@types+node@20.14.2_ioredis@5.4.1_terser@5.31.1/node_modules/vinxi/lib/routes.js:3:20)
      at instantiateModule (file:///E:/2024/solidstart/solid-project/node_modules/.pnpm/vite@5.3.1_@types+node@20.14.2_terser@5.31.1/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:11),
  statusCode: 500,
  fatal: false,
  unhandled: true,
  statusMessage: undefined,
  data: undefined
}

Please help me figure out what this is.

Expected behavior 🤔

No response

Steps to reproduce 🕹

Steps:

From Windows, VS Code inner terminal

  1. npm create solid / pnpm create solid
  2. cd my-app (directory created by naming the new app, example my-app here)
  3. npm i / pnpm i
  4. npm run dev / pnpm dev / pnpm run dev

Context 🔦

Windows 10

Your environment 🌎

Windows 10, 👍 Édition Windows 10 Family Version 22H2 Installed ‎04/13/‎2023 System build 19045.4529 Expérience Windows Feature Experience Pack 1000.19058.1000.0 Processor AMD Ryzen 5 2600 Six-Core Processor 3.40 GHz RAM 16,0 Go ID peripheral 5BD23CC2-2561-4A77-869C-3A36E3F752D7 ID product 00326-10122-40373-AA251 System 64-bit operating system, x64 processor

VS Code 👍 Version: 1.83.1 (system setup) Commit: a6606b6ca720bca780c2d3c9d4cc3966ff2eca12 Date: 2023-10-27T12:03:04.063Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT ia32 10.0.19045

brenelz commented 1 week ago

It would be beneficial to know which starter your having issues with. Also what operating system are you running on?

stevemk42 commented 1 week ago

I tried bare, basic, with-auth, with-authjs and with-tailwindcss. Both with npm and pnpm. Im using Windows.

Advice came in to try on Mac , which I just tried: Successful, my bare template launched !

Definitely looks like a (my) Windows problem. Im available to anyone willing to investigate this Windows matter with the starter templates, since my mac is a tiny laptop I cant do serious development on. Thanks in advance

brenelz commented 1 week ago

I wonder if this is always a problem for windows users or if its just your windows setup

stevemk42 commented 1 week ago

Guess its what it looks like. But I have no idea where to start investigate this. Id like this reporting to help so that other Windows users not having to go through this. Kinda sucks.

ryansolid commented 1 week ago

I wonder if it is recent. The creator/maintain of the create-solid CLI runs on windows too so I wonder if this is a newer issue as we were testing stuff around the CLI migration. It is possible to be specific to the machine/environment but I don't want to jump to that. Maybe we can get more responses from windows users. I'm going to update the title appropriately.

stevemk42 commented 1 week ago

Im available for any more information towards investigating this... Im gonna run Solidstart on Mac in the meantime. Honestly, I think its recent, I tried just 1 week ago... I reported this after spending 2/3 days on npm clean cache and other stack overflow tricks.