nuxt: 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'
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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 26 (7 by maintainers)
Commits related to this issue
- fix ufo version (https://github.com/nuxt/framework/issues/4883) — committed to pnlybubbles/idolypride-spotlight by pnlybubbles 2 years ago
This is still an issue on Nuxt
3.0.0-rc.3.Fresh npm install after deleting
package-lock.jsonand removingnode_modulescompletely.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.2and deletednode_modulesandpackage-lock.jsonand 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.jsonworks with RC3 - though this is not ideal of course as it may break future updates.@nuxtjs/tailwindcssJust release a new version and the issue is gone.While this is not an issue with Nuxt 3, let’s keep the issue until at least the majority of deps migrate to the latest of
ufo.We probably also need to create some follow-up issues to ensure the chances of codependency mismatch are less.
Based on the above
npm whyreports, the reasons for ufo0.7.xhosting are:@nuxtjs/tailwindcss: Will released shortlyexternality: /cc @danielroe can you please do the release?Also /cc @antfu regarding Vueuse blocker for npm upgrade.
Same here, got the issue in rc-3, I didn’t use
@nuxtjs/tailwindcsseither.yarn why ufooutput:Same here. Not resolvable by above steps and I got the feeling its because of tailwindcss which uses older ufo version.
switching to npm 8 and using
"overrides": { "ufo": "^0.8.4" }helps for now…Hi @lyykfi. Please try removing lockfile and
node_modulesdirectory. This is likely a vite cache issue.I hope this is not going to be an issue with every update:) I know this one is closed now @danielroe i guess that is because tailwind is the culprit here with using older ufo, which is fixed in the tailwind module but not yet released in a version.
I ‘like’ to switch back to npm7 because of other issues vue3 vs vue2 with vueuse in npm 8 😦
Hey there 👋
I am having the same issue in my
nuxt rc.3project.I tried many times to delete
package-lock.jsonand thenode_modulesfolder and reinstall everything, but it didn’t change anything.Using an npm version >= 8.3 and adding
in my package.json seems to fix the issue 🤔
If this can help, I am also using tailwind 👇
What was the package depending on an old version of ufo?
(
yarn why ufoshould show the details.)cc: @pi0
Had the same issue and got it working by enforcing
ufo 0.8.4across all dependencies in thepackage.json.That said, removing
node_modulesand the lockfile did also work for me and I could remove theresolutionagain.