office-text-extractor icon indicating copy to clipboard operation
office-text-extractor copied to clipboard

Not working with NextJS v14 when using dev --turbo

Open hosnipogi opened this issue 10 months ago • 0 comments

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

hosnipogi avatar Jan 08 '25 14:01 hosnipogi