Skip to content

Not working in deno deploy #3

Description

@deepak-coding-art

I am trying to load it in deno with the help of esm.sh but it is giving error:

error: Uncaught Error: createRequire only supports 'file://' URLs for the 'filename' parameter. Received 'https://esm.sh/v111/tiktoken-node@0.0.4/deno/tiktoken-node.js'
          throw new Error(
                ^
    at createRequire (https://deno.land/std@0.177.0/node/module.ts:690:17)
    at https://esm.sh/v111/tiktoken-node@0.0.4/deno/tiktoken-node.js:2:185

import statement

import tiktoken from "https://esm.sh/tiktoken-node@0.0.4";

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions