You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use langchainJS in an Obsidian plugin, and the plugin system uses esbuild. Seeing this error after I added langchain to my plugin
> node esbuild.config.mjs
[watch] build finished, watching for changes...
✘ [ERROR] No loader is configured for ".wasm" files: node_modules/@dqbd/tiktoken/tiktoken_bg.wasm
node_modules/@dqbd/tiktoken/tiktoken.js:1:22:
1 │ import * as wasm from "./tiktoken_bg.wasm";
I'm quite new to all this, not sure what issues need to be solved in order for me to proceed. Here's what I tried: I installed https://github.com/Tschrock/esbuild-plugin-wasm but it introduced a new error where it complains about top-level awaits. This esbuild-plugin-wasm readme actually has the note that says
This loader makes use of top-level await, which only has partial support in esbuild. For now, it is only supported with the esm output format, not the iife or cjs formats. See evanw/esbuild#253
I checked that esbuild issue there, but it was still open from 2020, seems not going to change anytime soon.
Can someone please kindly help me understand what needs to be done in order for me to use langchainjs in my Obsidian plugin? Switching the bundler from esbuild to something else probably isn't an option for me.
I saw this issue #1239, but not sure if this solves my problem.
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to use langchainJS in an Obsidian plugin, and the plugin system uses esbuild. Seeing this error after I added langchain to my plugin
I'm quite new to all this, not sure what issues need to be solved in order for me to proceed. Here's what I tried: I installed https://github.com/Tschrock/esbuild-plugin-wasm but it introduced a new error where it complains about top-level awaits. This esbuild-plugin-wasm readme actually has the note that says
I checked that esbuild issue there, but it was still open from 2020, seems not going to change anytime soon.
Can someone please kindly help me understand what needs to be done in order for me to use langchainjs in my Obsidian plugin? Switching the bundler from esbuild to something else probably isn't an option for me.
I saw this issue #1239, but not sure if this solves my problem.
The text was updated successfully, but these errors were encountered: