Tobias LundinT
Denoโ€ข4mo agoโ€ข
9 replies
Tobias Lundin

Node compat for `matchesGlob` from `node:path`?

Hi there ๐Ÿ‘‹
I'm new here but have been a deno fan from the get-go and have several project running on deno deploy v1 and v2 - love it!

I'm using deno 2.5.2 locally

Right now I'm attempting to deploy a tanstack-start app using the Nitro adapter (nightly v3 version)
- https://nitro.build/deploy/providers/deno-deploy
- https://tanstack.com/start/latest/docs/framework/react/hosting

But using that I cant even build and this is the error I get:

deno task build        
Task build vite build
error 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'));


terminal output:
โฏ deno run ./deno-test.ts
error: Uncaught SyntaxError: The requested module 'node:path' does not provide an export named 'matchesGlob'
import { matchesGlob } from 'node:path';


What am I doing wrong here?

Help very much appreciated! ๐Ÿ™๐Ÿ™๐Ÿ™
Deploy Nitro apps to Deno Deploy.
Deno Deploy - Nitro
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...
Hosting | TanStack Start React Docs
Was this page helpful?