Skip to content

Error: "defuFn is not a function" in 3.0.0-rc.9-xx #14768

@linooohon

Description

@linooohon

Environment


  • Operating System: MacOS
  • Node Version: v16.17.0
  • Nuxt Version: 3.0.0-rc.9-27702110.abd5dc5
  • Package Manager: [email protected]
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

package.json

  "dependencies": {
    "@headlessui/vue": "^1.6.7",
    "@heroicons/vue": "^1.0.6",
    "nuxt": "npm:nuxt3@^3.0.0-rc.9-27702110.abd5dc5",
    "pinia": "^2.0.21",
    "primeicons": "^5.0.0",
    "primevue": "^3.15.0",
    "vue": "^3.2.37"
  }

Describe the bug

When trying to fix loading problem of resources (ex: js files..) to follow cdnURL path with the version 3.0.0-rc.9-27702110.abd5dc5, and the resources loading problem was solved perfectly, thank you!

But there was an error with:

__vite_ssr_import_0__.defuFn is not a function

Temp Solution:

I solved it with adding defu dependencies "defu": "^6.1.0" in package.json for now.

npm i defu

Has anyone run into the same problem? Or other solutions?
Thank you!

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions