FATAL defu is not a function
See original GitHub issueWhen I initialized the project with Nuxt2 and selected the chakra-ui then I got this error when I started, console show the error was in this package.
FATAL defu is not a function
at ModuleContainer.module.exports (node_modules/@chakra-ui/nuxt/lib/module.js:20:32)
at ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:239:34)
at node_modules/@nuxt/utils/dist/utils.js:639:43
at async ModuleContainer.ready (node_modules/@nuxt/core/dist/core.js:55:5)
at async Nuxt._init (node_modules/@nuxt/core/dist/core.js:478:5)
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ โ Nuxt Fatal Error โ
โ โ
โ TypeError: defu is not a function โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error: "defuFn is not a function" in 3.0.0-rc.9-xx #7168 - GitHub
I solved it with adding defu dependencies "defu": "^6.1.0" in package.json for now. npm i defu.
Read more >Issue "TypeError: external_defu_ is not a function" running ...
The solution is to transpile defu during the build: nuxt.config.js export default defineNuxtConfig({ // ... build: { transpile: [ 'defu', ]ย ...
Read more >[h3] [unhandled] H3Error: __vite_ssr_import_0__.defineStore ...
defineStore is not a function at createError ... fatal: false, unhandled: true, statusMessage: 'Internal Server Error' }.
Read more >reactjs Uncaught TypeError: j is not a function Code Example
โreactjs Uncaught TypeError: j is not a functionโ Code Answer's ; uncaught TypeError: $.jajax is not a function. javascript by Easy Eel on...
Read more >Defu Li's research works | Guangzhou Medical University ...
This page lists the scientific contributions of an author, who either does not have a ResearchGate profile, or has not yet added these...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you for your reply, I suppose defu 6.0.0 do have problem, turn
@chakra-ui/nuxt
's version from^0.6.0
to0.5.0
solved this question.Same problem with the first run. My package JSON files: