-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
The next example only seems to work when the source is built locally, and not when it's installed from npm.
Weirdly enough, if I install the source locally and then switch to using the prebuilt npm package, it works :/
Trial 1: Using prebuilt npm package only
- Don't build the web-llm repo from source
- Set the dependency in package,json to the prebuilt package
...
"@mlc-ai/web-llm": "^0.2.2",
...
- install and run
npm install
npm run dev
- Run fails
Trial 2: Using prebuilt npm package after locally installing web-llm
- Build the web-llm repo from source
- Set the dependency in package,json to the prebuilt package
...
"@mlc-ai/web-llm": "^0.2.2",
...
- install and run
npm install
npm run dev
- Run succeeds
Trial 3: Building from source
- Build the web-llm repo from source
- Set the dependency in package,json to the local package
...
"@mlc-ai/web-llm": "../..",
...
- install and run
npm install
npm run dev
- Run succeeds
I'm a bit flummoxed as to why 1 doesn't work but 2 and 3 work. Specially 2 is surprising to me.
Metadata
Metadata
Assignees
Labels
No labels