dosubot[bot] commented on issue #6377:
URL: https://github.com/apache/opendal/issues/6377#issuecomment-3048534474

   <!-- Greeting -->
   Hi @syhily! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
opendal team.
   
   <!-- Answer -->
   This is a known issue with the Node.js binding in opendal 0.48.3: the 
BlockingReader export is missing from generated.js, which causes errors in ESM 
environments like Next.js or Astro. The root cause is that the bindings are 
currently CommonJS, and ESM support is incomplete. There are ongoing efforts to 
improve compatibility by updating the exports configuration and adding ESM 
entry points, but these changes may not yet be available in the release you are 
using [details](https://github.com/apache/opendal/issues/6237) [PR 
example](https://github.com/apache/opendal/pull/6258).
   
   As a temporary workaround, some users have reported that downgrading to 
opendal 0.47.11 resolves the issue. Alternatively, if possible, use require() 
instead of import in a CommonJS context. Full ESM support is being worked on, 
so keep an eye on upcoming releases for a permanent fix.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/2c40f4e6-c69d-4775-bbc0-6d44a4b7b692?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/2c40f4e6-c69d-4775-bbc0-6d44a4b7b692?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/2c40f4e6-c69d-4775-bbc0-6d44a4b7b692?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/2c40f4e6-c69d-4775-bbc0-6d44a4b7b692?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/2c40f4e6-c69d-4775-bbc0-6d44a4b7b692?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/2c40f4e6-c69d-4775-bbc0-6d44a4b7b692?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/2c40f4e6-c69d-4775-bbc0-6d44a4b7b692?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[!
 [Share on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/opendal/issues/6377)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to