question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot access the application: defu__WEBPACK_IMPORTED_MODULE_3__ is not a function

See original GitHub issue

Version

@nuxtjs/tailwindcss: v5.1.2 nuxt: v2.15.8

Reproduction Link

https://codesandbox.io/s/tailwindcss-module-issue-defu-jqhlf6

It is working fine with @nuxtjs/tailwindcss v5.0.4. Another user seems to get the same error, as seen on StackOverflow: https://stackoverflow.com/questions/72409854/defu-webpack-imported-module-3-is-not-a-function-nuxt-auth

Steps to reproduce

  • Add @nuxtjs/auth-next dependency (version 5.0.0-1648802546.c9880dc)
  • Configure strategies in nuxt.config.js
  • Run dev server and open Nuxt application in the browser

What is Expected?

  • Application is running properly

What is actually happening?

  • Getting an error message: defu__WEBPACK_IMPORTED_MODULE_3__ is not a function

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:10

github_iconTop GitHub Comments

4reactions
chwan97commented, Oct 8, 2022

same issue! This problem occurs after project initialization.

Nuxt 2 + Typescript + tailwindCSS + chakraUI + yarn + Nuxt Content

$ nuxt

 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)

4reactions
okaufmanncommented, Sep 14, 2022

It seems to be a Problem with webpack and or the package defu. I’ve solved it by installing defu in version 5.0.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: func.apply is not a function - Stack Overflow
You can only pass a normal function as argument to useEffect, and not an async function. In order to use async await in...
Read more >
Troubleshoot error: Azure Functions Runtime is unreachable
This issue occurs when the Functions runtime can't start. The most common reason for this is that the function app has lost access...
Read more >
Require is not a function · Issue #21 - GitHub
Hi, I'm able to pack the Function App by running funcpack pack ./. Not able to run func run because func is not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found