mlc-ai/tokenizers-cpp

Fail to import in Node.js

zcbenz opened this issue · 0 comments

It seems that the npm package can not be imported in a Node.js:

import {Tokenizer} from "@mlc-ai/web-tokenizers";
import {Tokenizer} from "@mlc-ai/web-tokenizers";
        ^^^^^^^^^
SyntaxError: The requested module '@mlc-ai/web-tokenizers' does not provide an export named 'Tokenizer'
import Tokenizer from "@mlc-ai/web-tokenizers";
import Tokenizer from "@mlc-ai/web-tokenizers";
       ^^^^^^^^^
SyntaxError: The requested module '@mlc-ai/web-tokenizers' does not provide an export named 'default'

I have no experience with rollup so I can't quite see where went wrong in packaging.