Deno Fresh 2.0
なんか開発が止まってるような気がする。
このまま終わらない事を祈る。
deno run -Ar jsr:@fresh/[email protected]
cd fresh-project
deno run -RESNW --allow-run=$HOME/.cache/deno/npm/registry.npmjs.org/@esbuild/linux-x64/0.23.1/bin/esbuild --watch=static/,routes/ dev.ts
Watcher Process started.
🍋 Fresh ready
Local: http://0.0.0.0:8000/
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/dev.ts:1:7:
1 │ import "npm:/preact@^10.25.1/debug";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
islands/Counter.tsx:11:6:
11 │ <Button onClick={() => props.count.value -= 1}>-1</Button>
╵ ^
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
components/Button.tsx:11:4:
11 │ <button
╵ ^
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/preact_hooks_client.ts:1:24:
1 │ import { options } from "npm:preact@^10.25.1";
╵ ~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/reviver.ts:9:7:
9 │ } from "npm:preact@^10.25.1";
╵ ~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/partials.ts:1:42:
1 │ import { type ComponentChildren, h } from "npm:preact@^10.25.1";
╵ ~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/reviver.ts:11:23:
11 │ import { signal } from "npm:@preact/signals@^1.2.3";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: Uncaught (in promise) Error: Build failed with 7 errors:
components/Button.tsx:11:4: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/dev.ts:1:7: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/partials.ts:1:42: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/preact_hooks_client.ts:1:24: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/reviver.ts:9:7: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
...
at failureErrorWithLog (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild/0.23.1/lib/main.js:1476:15)
at file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild/0.23.1/lib/main.js:945:25
at runOnEndCallbacks (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild/0.23.1/lib/main.js:1316:45)
at buildResponseToResult (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild/0.23.1/lib/main.js:943:7)
at file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild/0.23.1/lib/main.js:970:16
at responseCallbacks.<computed> (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild/0.23.1/lib/main.js:622:9)
at handleIncomingPacket (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild/0.23.1/lib/main.js:677:12)
at Readable.readFromStdout (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild/0.23.1/lib/main.js:600:7)
at Readable.emit (ext:deno_node/_events.mjs:393:28)
at addChunk (ext:deno_node/_stream.mjs:2438:16)
Watcher Process failed. Restarting on file change...
$ FRESH_ESBUILD_LOADER=portable deno run -RESNWr --watch=static/,routes/ dev.ts
Watcher Process started.
🍋 Fresh ready
Local: http://0.0.0.0:8000/
✅ Granted run access to "node".
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/dev.ts:1:7:
1 │ import "npm:/preact@^10.25.1/debug";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
islands/Counter.tsx:11:6:
11 │ <Button onClick={() => props.count.value -= 1}>-1</Button>
╵ ^
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
components/Button.tsx:11:4:
11 │ <button
╵ ^
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/reviver.ts:9:7:
9 │ } from "npm:preact@^10.25.1";
╵ ~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/preact_hooks_client.ts:1:24:
1 │ import { options } from "npm:preact@^10.25.1";
╵ ~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/partials.ts:1:42:
1 │ import { type ComponentChildren, h } from "npm:preact@^10.25.1";
╵ ~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'. [plugin deno-loader]
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/reviver.ts:11:23:
11 │ import { signal } from "npm:@preact/signals@^1.2.3";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: Uncaught (in promise) Error: Build failed with 7 errors:
components/Button.tsx:11:4: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/dev.ts:1:7: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/partials.ts:1:42: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/preact_hooks_client.ts:1:24: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
https://jsr.io/@fresh/core/2.0.0-alpha.29/src/runtime/client/reviver.ts:9:7: ERROR: [plugin: deno-loader] To use "npm:" specifiers, you must specify 'nodeModulesDir: "manual"', or use 'loader: "native"'.
...
at failureErrorWithLog (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild-wasm/0.23.1/lib/main.js:1466:15)
at file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild-wasm/0.23.1/lib/main.js:935:25
at runOnEndCallbacks (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild-wasm/0.23.1/lib/main.js:1306:45)
at buildResponseToResult (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild-wasm/0.23.1/lib/main.js:933:7)
at file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild-wasm/0.23.1/lib/main.js:960:16
at responseCallbacks.<computed> (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild-wasm/0.23.1/lib/main.js:612:9)
at handleIncomingPacket (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild-wasm/0.23.1/lib/main.js:667:12)
at Readable.readFromStdout (file:///home/chiba/.cache/deno/npm/registry.npmjs.org/esbuild-wasm/0.23.1/lib/main.js:590:7)
at Readable.emit (ext:deno_node/_events.mjs:393:28)
at addChunk (ext:deno_node/_stream.mjs:2438:16)
Watcher Process failed. Restarting on file change...