-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Been trying to upgrade to cuid2 from cuid on-off for a while now but never been able to solve this issue. Hoping maintainers or community can help.
I installed with the following:
yarn remove cuidyarn add @paralleldrive/cuid2And my diffs are essentially
- import cuid from "cuid"
+ import cuid2 from "@paralleldrive/cuid2"- cuid()
+ cuid2.createId()But I'm always seeing the error:
TypeError: Expected input type is Uint8Array (got object)
> 1 | import cuid2 from "@paralleldrive/cuid2"
Same with:
TypeError: Expected input type is Uint8Array (got object)
> 1 | import { createId } from "@paralleldrive/cuid2"
Only seems to be a problem on my web package, my api is not complaining.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed