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.

After upgrading to nuxt3-rc2 Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.vite/deps/ufo.js?v=9947c87e' does not provide an export named 'isEqual'

See original GitHub issue

Environment

  • Operating System: Linux
  • Node Version: v14.19.0
  • Nuxt Version: 3.0.0-rc.2-27530889.9e5a3cd
  • Package Manager: npm@8.4.1
  • Builder: vite
  • User Config: runtimeConfig, modules, buildModules, css, intlify, googleFonts
  • Runtime Modules: @formkit/nuxt@1.0.0-beta.7-ffbc354
  • Build Modules: @intlify/nuxt3@0.1.10, @pinia/nuxt@0.1.9

Reproduction

I have the error if I open any page.

Describe the bug

I have the bug in a browser console and seems like client-only part doesn’t work.

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:26 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
michaelpumocommented, May 11, 2022

This is still an issue on Nuxt 3.0.0-rc.3.

Fresh npm install after deleting package-lock.json and removing node_modules completely.

Error: Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.vite/deps/ufo.js?v=3d76fa91' does not provide an export named 'isEqual' (at router.mjs:8:23)

From this line: import { withoutBase, isEqual } from "/_nuxt/node_modules/.vite/deps/ufo.js?v=3d76fa91";

UPDATE 1 I downgraded to Nuxt 3.0.0-rc.2 and deleted node_modules and package-lock.json and re-installed everything and the error has gone. So it’s definitely something in RC3.

UPDATE 2 As mentioned by @cdowning below, adding an override for the UFO dependency in package.json works with RC3 - though this is not ideal of course as it may break future updates.

"overrides": {
  "ufo": "^0.8.4"
}
7reactions
angh0rcommented, May 23, 2022

@nuxtjs/tailwindcss Just release a new version and the issue is gone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ask Question - Stack Overflow
The requested module '/node_modules/.vite/deps/vue.js' does not provide an export named 'default' · Ask Question. Asked 5 ...
Read more >
vite the requested module does not provide an export named ...
1 I get an error in the console: Uncaught SyntaxError: The requested module '/src/components/HelloWorld.vue' does not provide an export named 'default2' . The ......
Read more >
The requested module does not provide an export named
I have to fix this problem. Component.tsx:31 Uncaught SyntaxError: The requested module '/@fs/Users/user/Programming/react_project/node_modules/ ...
Read more >
Common Issues - Nuxt Vite
Uncaught SyntaxError : The requested module ... does not provide an export named 'default'. Vite has an issue for pre-bundling dependencies ...
Read more >
Requested module does not provide export named 'default'
To solve the error "The requested module does not provide an export named default", use the `default` keyword when exporting a value from...
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