Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide Code Error on "Build an app with SolidStart and Bun" #16804

Open
TLevesque opened this issue Jan 27, 2025 · 0 comments
Open

Guide Code Error on "Build an app with SolidStart and Bun" #16804

TLevesque opened this issue Jan 27, 2025 · 0 comments
Labels
docs Improvements or additions to documentation

Comments

@TLevesque
Copy link

What is the type of issue?

Example code is not working

What is the issue?

Hi,

When following the guide "Build an app with SolidStart and Bun", the command "bunx solid-start dev" triggers an error. The alternative command "bun run dev" is working. My version of Bun is 1.2.0

Here are the steps I've followed within the terminal to reproduce it:

➜ Code: bun create solid bun-solidjs-app

Create-Solid v0.5.14

◇ Is this a SolidStart project?
│ Yes

◇ Which template would you like to use?
│ bare

◇ Use Typescript?
│ No

◇ Project successfully created! 🎉

◇ To get started, run: ─╮
│ │
│ cd bun-solidjs-app │
│ bun install │
│ bun dev │
│ │
├────────────────────────╯
➜ Code: cd bun-solidjs-app
➜ bun-solidjs-app: bun install
bun install v1.2.0 (b0c5a76)

466 packages installed [7.01s]

Blocked 1 postinstall. Run bun pm untrusted for details.
➜ bun-solidjs-app: bunx solid-start dev
solid-start dev
version 0.3.11
node:internal/modules/esm/resolve:844
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'solid-start-node' imported from /private/tmp/bunx-501-solid-start@latest/node_modules/solid-start/bin.cjs
at packageResolve (node:internal/modules/esm/resolve:844:9)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1131:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
at ModuleLoader.import (node:internal/modules/esm/loader:322:34)
at importModuleDynamically (node:internal/modules/cjs/loader:1263:33)
at importModuleDynamicallyWrapper (node:internal/vm/module:430:21)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:207:14) {
code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v21.6.2
➜ bun-solidjs-app: bun run dev
$ vinxi dev
vinxi v0.4.3
vinxi starting dev server

WARN No valid compatibility date is specified. nitro 5:44:23 PM

ℹ Using 2024-04-03 as fallback. nitro 5:44:23 PM
Please specify compatibility date to avoid unwanted behavior changes:
- Add compatibilityDate: '2025-01-27' to the config file.
- Or set COMPATIBILITY_DATE=2025-01-27 environment variable.

[get-port] Unable to find an available port (tried 3000 on host "localhost"). Using alternative port 3002.

➜ Local: http://localhost:3002/
➜ Network: use --host to expose

^C%

Where did you find it?

No response

@TLevesque TLevesque added the docs Improvements or additions to documentation label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant