B3Pay / B3Wallet

B3Wallet: A decentralized, multi-chain wallet with unique support for Bitcoin, Ethereum, using Internet Computer's threshold ECDSA. Manage multiple accounts and owners securely and efficiently with this open-source solution.
https://mnrs5-4qaaa-aaaap-abc5a-cai.icp0.io/
MIT License
30 stars 10 forks source link

`npx next build` error #40

Closed sadernalwis closed 10 months ago

sadernalwis commented 10 months ago

fails here at first build after a clean repository installation. the directory address is correct however.

Executing 'yarn build'
$ npx next build
   Linting and checking validity of types  ..Failed to compile.

./scripts/b3system.ts:2:50
Type error: Cannot find module '../src/declarations/b3system' or its corresponding type declarations.

  1 | import { createReActorStore } from "@ic-reactor/store"
> 2 | import { b3system, canisterId, idlFactory } from "../src/declarations/b3system"
    |                                                  ^
  3 | import { agentManager } from "./agent"
  4 |
  5 | export type B3System = typeof b3system
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

fails here at second attempt

Executing 'yarn build'
$ npx next build
   Linting and checking validity of types  ..Failed to compile.

./src/components/ui/avatar.tsx:93:18
Type error: Interface 'AvatarProps' cannot simultaneously extend types 'VariantProps<(props?: (ConfigVariants<{ color: { primary: string; secondary: string; error: string; success: string; warning: string; info: string; muted: string; }; variant: { default: string; filled: string; outline: string; ghost: string; }; size: { ...; }; round: { ...; }; }> & ClassProp) | undefined) => string>' and 'VariantProps<(props?: (ConfigVariants<{ bgColor: { primary: string; secondary: string; error: string; success: string; warning: string; info: string; muted: string; inherit: string; card: string; }; variant: { default: string; filled: string; outline: string; ghost: string; link: string; }; }> & ClassProp) | undefin...'.
  Named property 'variant' of types 'VariantProps<(props?: (ConfigVariants<{ color: { primary: string; secondary: string; error: string; success: string; warning: string; info: string; muted: string; }; variant: { default: string; filled: string; outline: string; ghost: string; }; size: { ...; }; round: { ...; }; }> & ClassProp) | undefined) => string>' and 'VariantProps<(props?: (ConfigVariants<{ bgColor: { primary: string; secondary: string; error: string; success: string; warning: string; info: string; muted: string; inherit: string; card: string; }; variant: { default: string; filled: string; outline: string; ghost: string; link: string; }; }> & ClassProp) | undefin...' are not identical.

  91 | )
  92 |
> 93 | export interface AvatarProps
     |                  ^
  94 |   extends Omit<
  95 |       React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>,
  96 |       "color"
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
b3hr4d commented 10 months ago

fails here at first build after a clean repository installation.

We should Add dfx generate as prebuild script for fixing this.

fails here at second attempt

I'll fix this later.