From: Subject: Bug When Creating a Next.js Project on OpenBSD 7.5 and -current To: Cc: Date: Mon, 16 Sep 2024 17:07:20 +0400 Hi, I'm trying to create a Next.js project using Deno. I tried on both OpenBSD 7.5 and -current. Below is a report of what I did for both versions: # Using OpenBSD 7.5 ``` test# deno run -A npm:create-next-app@latest my-next-app ✔ Would you like to use TypeScript? … No / Yes ✔ Would you like to use ESLint? … No / Yes ✔ Would you like to use Tailwind CSS? … No / Yes ✔ Would you like to use `src/` directory? … No / Yes ✔ Would you like to use App Router? (recommended) … No / Yes ✔ Would you like to customize the default import alias (@/*)? … No / Yes Creating a new Next.js app in /root/test/my-next-app. Using npm. Initializing project with template: app Installing dependencies: - react - react-dom - next ============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: openbsd x86_64 Version: 1.36.4 Args: ["deno", "run", "-A", "npm:create-next-app@latest", "my-next-app"] thread 'main' panicked at runtime/ops/os/mod.rs:67:40: called `Result::unwrap()` on an `Err` value: Error { kind: Uncategorized, message: "no current exe available (short)" } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` with RUST_BACKTRACE=full: ``` test# RUST_BACKTRACE=full deno run -A npm:create-next-app@latest my-next-app ✔ Would you like to use TypeScript? … No / Yes ✔ Would you like to use ESLint? … No / Yes ✔ Would you like to use Tailwind CSS? … No / Yes ✔ Would you like to use `src/` directory? … No / Yes ✔ Would you like to use App Router? (recommended) … No / Yes ✔ Would you like to customize the default import alias (@/*)? … No / Yes Creating a new Next.js app in /root/test/my-next-app. Using npm. Initializing project with template: app Installing dependencies: - react - react-dom - next ============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: openbsd x86_64 Version: 1.36.4 Args: ["deno", "run", "-A", "npm:create-next-app@latest", "my-next-app"] thread 'main' panicked at runtime/ops/os/mod.rs:67:40: called `Result::unwrap()` on an `Err` value: Error { kind: Uncategorized, message: "no current exe available (short)" } stack backtrace: 0: 0xc112804f4cd - 1: 0xc112806cf11 - 2: 0xc1128010d24 - 3: 0xc112804f2a3 - 4: 0xc1128011ae7 - 5: 0xc1128011750 - 6: 0xc1124f2aae8 - 7: 0xc112801218c - 8: 0xc112804fb97 - 9: 0xc112804f70d - 10: 0xc1128011d27 - 11: 0xc11280732aa - 12: 0xc1128073f5a - 13: 0xc1125a8f72e - 14: 0xc1125a8ef9b - ``` # Now with OpenBSD Snapshots (actually: 7.6-beta, deno 1.45.5) ``` test# uname -a OpenBSD test.local 7.6 GENERIC#306 amd64 test# deno --version deno 1.45.5 (release, x86_64-unknown-openbsd) v8 12.7.224.13 typescript 5.5.2 test# deno run -A npm:create-next-app@latest my-next-app ld.so: deno: can't load library 'libonig.so.8.0' Killed test# pkg_add oniguruma quirks-7.49 signed on 2024-09-13T15:15:19Z oniguruma-6.9.9: ok test# ls /usr/local/lib/libonig.so.8.0 /usr/local/lib/libonig.so.8.0 test# deno run -A npm:create-next-app@latest my-next-app error: Uncaught TypeError: Failed to get cpu info at Object.cpus (node:os:63:10) at Object.423 (file:///root/.cache/deno/npm/registry.npmjs.org/create-next-app/14.2.11/dist/index.js:33:19721) at __nccwpck_require__ (file:///root/.cache/deno/npm/registry.npmjs.org/create-next-app/14.2.11/dist/index.js:73:59379) at Object.8695 (file:///root/.cache/deno/npm/registry.npmjs.org/create-next-app/14.2.11/dist/index.js:33:4682) at __nccwpck_require__ (file:///root/.cache/deno/npm/registry.npmjs.org/create-next-app/14.2.11/dist/index.js:73:59379) at Module.8776 (file:///root/.cache/deno/npm/registry.npmjs.org/create-next-app/14.2.11/dist/index.js:73:35050) at __nccwpck_require__ (file:///root/.cache/deno/npm/registry.npmjs.org/create-next-app/14.2.11/dist/index.js:73:59379) at file:///root/.cache/deno/npm/registry.npmjs.org/create-next-app/14.2.11/dist/index.js:73:60243 at Object. (file:///root/.cache/deno/npm/registry.npmjs.org/create-next-app/14.2.11/dist/index.js:73:60287) at Object. (file:///root/.cache/deno/npm/registry.npmjs.org/create-next-app/14.2.11/dist/index.js:74:4) ``` If anyone can help me... Thank you very much! /Wesley