Property '*' does not exist on type 'typeof import(...)'
Property '*' does not exist on type 'typeof import(...)'
CCC uses JavaScript’s Package Entry Points feature to enable tree shaking while exporting everything on the See the TypeScript guide on
ccc object. If TypeScript cannot find a property, check your tsconfig.json:- Set
moduleResolutiontonode16,nodenext, orbundler. - Do not disable
resolvePackageJsonExports.
tsconfig.json
package.json exports for more detail.TypeError: (0, react....createContext) is not a function
TypeError: (0, react....createContext) is not a function
CCC’s UI components run on the client side only. If you are using React Server Components, add the
"use client" directive at the top of any file that renders ccc.Provider:Can I use Lumos with CCC?
Can I use Lumos with CCC?
Yes. CCC provides the Apply the patches before calling any Lumos APIs:
@ckb-ccc/lumos-patches package to add support for JoyID, Nostr, and Portal wallets inside Lumos-based projects.Install the package:Which wallets does CCC support?
Which wallets does CCC support?
CCC supports wallets from multiple ecosystems through a unified signer interface:
All wallets connect through the same
| Ecosystem | Wallets |
|---|---|
| EVM | MetaMask, and other EVM-compatible wallets |
| Bitcoin | UniSat, OKX, UTXO Global, Xverse |
| CKB native | JoyID |
| Nostr | NIP-07 compatible extensions |
| Dogecoin | Doge-compatible wallets |
ccc.Signer interface, so your transaction logic works regardless of which wallet the user chooses.How do I switch between mainnet and testnet?
How do I switch between mainnet and testnet?
Pass the appropriate client when constructing your signer or provider.With the React connector, set the Without React, pass the client directly:
defaultClient prop on ccc.Provider, or call setClient() from the useCcc() hook at runtime:What is the difference between @ckb-ccc/ccc and @ckb-ccc/connector-react?
What is the difference between @ckb-ccc/ccc and @ckb-ccc/connector-react?
-
@ckb-ccc/connector-reactincludes everything in@ckb-ccc/cccplus React-specific additions: theccc.Providercomponent, theuseCcc()hook, and a pre-built wallet selection UI. Use this package in React apps. -
@ckb-ccc/cccis the framework-agnostic core. Use it when you are building a custom wallet connection UI, working in a non-React environment, or want full control over how signers are managed.
@ckb-ccc/ccc is the right starting point. See the packages overview for a full comparison.