Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt3: fast-deep-equal does not provide an export named 'default' #157

Closed
Blemming opened this issue Oct 5, 2022 · 4 comments
Closed

Nuxt3: fast-deep-equal does not provide an export named 'default' #157

Blemming opened this issue Oct 5, 2022 · 4 comments

Comments

@Blemming
Copy link

Blemming commented Oct 5, 2022

Describe the bug

Error in development in chrome

Uncaught SyntaxError: The requested module '/_nuxt/node_modules/fast-deep-equal/index.js?v=59f3ca57' does not provide an export named 'default'

Causes my whole script tag to pause in development.
But it transpiles and builds correctly in production environnement

To Reproduce

Steps to reproduce the behavior:

  1. Followed steps here
  2. And here
  3. Start project in development mode

Expected behavior

The page to load and all subsequent vue script to load

Desktop (please complete the following information):**

  • Device: PC
  • OS: Windows 10
  • Browser Chrome
  • Version 106.0.5249.91
@websitevirtuoso
Copy link

websitevirtuoso commented Oct 8, 2022

I had the same issue had to fix via vite config. But I don't use nuxt


    optimizeDeps: {
      // fast-deep-equal doesnt have default export
      // https://github.com/vitejs/vite/issues/2679
      include: ['@apollo/client/core', '@apollo/client/cache', '@apollo/client/link/context', 'fast-deep-equal'],
      exclude: ['@apollo/react'],
    },

@Blemming
Copy link
Author

Blemming commented Oct 17, 2022

I had the same issue had to fix via vite config. But I don't use nuxt


    optimizeDeps: {
      // fast-deep-equal doesnt have default export
      // https://github.com/vitejs/vite/issues/2679
      include: ['@apollo/client/core', '@apollo/client/cache', '@apollo/client/link/context', 'fast-deep-equal'],
      exclude: ['@apollo/react'],
    },

This works for me ! thanks a lot

@PatrikBird
Copy link

Workaround: downgrade/pin version to 0.9.72
#164 (comment)

@ShwaibLeBon
Copy link

optimizeDeps: {
// fast-deep-equal doesnt have default export
// vitejs/vite#2679
include: ['@apollo/client/core', '@apollo/client/cache', '@apollo/client/link/context', 'fast-deep-equal'],
exclude: ['@apollo/react'],
},

Worked for me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants