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

ERR_REQUIRE_ESM in @llamaindex/azure #1623

Open
1 of 14 tasks
wodka opened this issue Feb 5, 2025 · 2 comments · Fixed by #1638
Open
1 of 14 tasks

ERR_REQUIRE_ESM in @llamaindex/azure #1623

wodka opened this issue Feb 5, 2025 · 2 comments · Fixed by #1638
Assignees
Labels
bug Something isn't working

Comments

@wodka
Copy link
Contributor

wodka commented Feb 5, 2025

Describe the bug
A clear and concise description of what the bug is.

/node_modules/@llamaindex/azure/dist/index.cjs:315
// Load the documents stored in the data/paul_graham/ using the SimpleDirectoryReader
             ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /node_modules/@llamaindex/azure/dist/storage.edge-light.js from /node_modules/@llamaindex/azure/dist/index.cjs not supported.
Instead change the require of storage.edge-light.js in /node_modules/@llamaindex/azure/dist/index.cjs to a dynamic import() which is available in all CommonJS modules.
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at Object.<anonymous> (/node_modules/@llamaindex/azure/dist/index.cjs:3:28)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14) {
  code: 'ERR_REQUIRE_ESM'
}

To Reproduce
use nestjs (commonjs)

Error [ERR_REQUIRE_ESM]: require() of ES Module /node_modules/@llamaindex/azure/dist/storage.edge-light.js from /node_modules/@llamaindex/azure/dist/index.cjs not supported.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
none

Desktop (please complete the following information):

  • OS: [e.g. macOS, Linux]
  • JS Runtime / Framework / Bundler (select all applicable)
  • Node.js
  • Deno
  • Bun
  • Next.js
  • ESBuild
  • Rollup
  • Webpack
  • Turbopack
  • Vite
  • Waku
  • Edge Runtime
  • AWS Lambda
  • Cloudflare Worker
  • Others (please elaborate on this)
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@wodka wodka added the bug Something isn't working label Feb 5, 2025
@marcusschiesser marcusschiesser moved this to In Progress in Framework Feb 10, 2025
@himself65
Copy link
Member

This looks like a bunchee issue, let me check

@marcusschiesser
Copy link
Collaborator

reopen as reverting 0.8.36 release

@github-project-automation github-project-automation bot moved this from Done to Todo in Framework Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

3 participants