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

Getting error when running in Nextjs #25

Open
rudolf-erasmus opened this issue Sep 19, 2024 · 0 comments
Open

Getting error when running in Nextjs #25

rudolf-erasmus opened this issue Sep 19, 2024 · 0 comments

Comments

@rudolf-erasmus
Copy link

rudolf-erasmus commented Sep 19, 2024

After installing the package.

And then running the following example code

const request = new requests.ListUsers({ count: 10 });

It fails with this error:

⨯ ./node_modules/.pnpm/[email protected]/node_modules/keyv/src/index.js:22:15
Module not found
  20 |  if (options.adapter || options.uri) {
  21 |          const adapter = options.adapter || /^[^:+]*/.exec(options.uri)[0];
> 22 |          return new (require(adapters[adapter]))(options);
     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  23 |  }
  24 |
  25 |  return new Map();

Could you please point me in the right direction, thanks! Even installing [email protected] does not resolve the error.

More information I removed the --trubo from "next dev -- trubo" and that resolved the error

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

1 participant