But using that I cant even build and this is the error I get:
deno task buildTask build vite builderror during build:SyntaxError: The requested module 'node:path' does not provide an export named 'matchesGlob' at file:///Users/tobias/dev/tolu/tanstack-start-deno/node_modules/.deno/unstorage@2.0.0-alpha.3/node_modules/unstorage/dist/drivers/fs.mjs:2:35 at async createStorage (file:///Users/tobias/dev/tolu/tanstack-start-deno/node_modules/.deno/nitro-nightly@3.0.0-20251010-091540-0e3dbc69/node_modules/nitro-nightly/dist/_chunks/index.mjs:20195:22)
deno task buildTask build vite builderror during build:SyntaxError: The requested module 'node:path' does not provide an export named 'matchesGlob' at file:///Users/tobias/dev/tolu/tanstack-start-deno/node_modules/.deno/unstorage@2.0.0-alpha.3/node_modules/unstorage/dist/drivers/fs.mjs:2:35 at async createStorage (file:///Users/tobias/dev/tolu/tanstack-start-deno/node_modules/.deno/nitro-nightly@3.0.0-20251010-091540-0e3dbc69/node_modules/nitro-nightly/dist/_chunks/index.mjs:20195:22)
I've simplified the issue to this code, and I dont really understand why this should not work?
import { matchesGlob } from 'node:path';console.log(matchesGlob(Deno.cwd(), '**/*.json'));
import { matchesGlob } from 'node:path';console.log(matchesGlob(Deno.cwd(), '**/*.json'));
terminal output:
โฏ deno run ./deno-test.tserror: Uncaught SyntaxError: The requested module 'node:path' does not provide an export named 'matchesGlob'import { matchesGlob } from 'node:path';
โฏ deno run ./deno-test.tserror: Uncaught SyntaxError: The requested module 'node:path' does not provide an export named 'matchesGlob'import { matchesGlob } from 'node:path';
Hosting is the process of deploying your application to the internet so that users can access it. This is a critical part of any web development project, ensuring your application is available to the...