Can't use '@netlify/blobs' in Next.js functions

My site is
It is Next.js-based. With a few functions.
I want to use Netlify Blobs inside functions. I import them using

import { getStore } from '@netlify/blobs';


Feb 20, 12:54:00 PM: 0b2d623f ERROR  TypeError: file.startsWith is not a function
    at promises.readFile (/var/task/.netlify/functions-internal/___netlify-handler/handlerUtils.js:98:18)
    at getSource (node:internal/modules/esm/load:43:20)
    at defaultLoad (node:internal/modules/esm/load:111:38)
    at ModuleLoader.load (node:internal/modules/esm/loader:416:13)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:287:22)
    at new ModuleJob (node:internal/modules/esm/module_job:63:26)
    at #createModuleJob (node:internal/modules/esm/loader:311:17)
    at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:264:34)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

The problem is that Netlify makes too optimized bundles for functions, so it removes even required imports…

I try to overcome the issue using require syntax

const blobs = require('@netlify/blobs');
const { getStore } = blobs;

but that causes another issue described here:

Can you please share a reproduction that could confirm your theory?

The error you mentioned has nothing to do with this import and simply needs Next.js Runtime v4.41.3 to work.