Skip to content

useMultipartUpload Failed to resolve import "@vercel/blob/client" error on startup #859

@alexcroox

Description

@alexcroox

Describe the bug

[13:47:56]  ERROR  Pre-transform error: Failed to resolve import "@vercel/blob/client" from "node_modules/@nuxthub/core/dist/blob/runtime/app/composables/useMultipartUpload.mjs?v=9094592e". Does the file exist?
  Plugin: vite:import-analysis
  File: /node_modules/@nuxthub/core/dist/blob/runtime/app/composables/useMultipartUpload.mjs?v=9094592e:103:22
  102 |        const hub = useRuntimeConfig().public.hub;
  103 |        if (hub.blobProvider === "vercel-blob") {
  104 |          return import("@vercel/blob/client").then(({ upload: upload2 }) => {
      |                        ^
  105 |            return upload2(file.name, file, {
  106 |              access: "public",

Steps to reproduce
Set blob: true and include useMultipartUpload anywhere.

https://stackblitz.com/edit/github-4nny2rsk?file=app%2Fapp.vue

A PR #810 by @onmax was created to resolve this but it seems like it's still an issue in 0.10.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions