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

This dependency was not found: * fs in ./node_modules/vimeo/lib/vimeo.js #76

Closed
JosephCarrington opened this issue Jul 24, 2018 · 7 comments
Labels

Comments

@JosephCarrington
Copy link

When using next.js

@aecorredor
Copy link

Same thing happening to me.

@aecorredor
Copy link

This is the problem: vercel/next.js#2734

@aecorredor
Copy link

@JosephCarrington I checked the code and fs is only used to upload videos. If you follow the link to the issue I included on the previous comment there's a way to exclude fs from being compiled by webpack. I'm about to try that.

@aecorredor
Copy link

aecorredor commented Aug 2, 2018

@JosephCarrington ok so that works, try adding this to your next.config.js:

module.exports = {
  webpack: (config, { isServer }) => {
    if (!isServer) {
      config.node = {
        fs: 'empty',
      };
    }

    return config;
  },
};

That would include fs on the server but not on the client.

@erunion
Copy link
Contributor

erunion commented Aug 5, 2018

Thanks for looking into that @aecorredor.

@erunion erunion closed this as completed Aug 5, 2018
@erunion erunion added the support label Aug 5, 2018
@AbingPj
Copy link

AbingPj commented Apr 9, 2021

Any idea how to solve it on nuxt.js

@arbexmb
Copy link

arbexmb commented Sep 3, 2024

Any idea how to solve it on nuxt.js

I am wondering the same thing. Did you manage to solve it on nuxt.js @AbingPj ?

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

No branches or pull requests

5 participants