Skip to content

Not working with NextJS v14 when using dev --turbo #18

Open
@hosnipogi

Description

@hosnipogi

Description

Im getting the following error when trying to use the library on NextJS v14 with turbo mode enabled:

https://nextjs.org/docs/messages/module-not-found


 ✓ Compiled / in 4.2s
 ⨯ ModuleBuildError: ./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();

Repo to reproduce:

https://github.com/hosnipogi/office-text-extractor-issue

Library version

3.0.3

Node version

v20.17.0

Typescript version (if you are using it)

5.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions