Open liujun93 opened 8 months ago
@liujun93 can I take this? it's tied to interchain ui compatibility with app router
@yyyyaaa sure
I get the same error
Hey guys! Sorry for the delay, I was focusing on other issues, will get this fixed today
For the "pino-pretty" error you can update your next config this way:
const nextConfig = {
webpack: (config) => {
config.externals.push("pino-pretty");
return config;
},
}
on my side the issue I get is from importing import "@interchain-ui/react/styles";
in my layout.
but if I import both:
import "@interchain-ui/react/globalStyles";
import "@interchain-ui/react/styles";
Then its working and I dont get any compilation issue.
I'm using Next 14.1.0 with app router. I wrap my app within this component:
"use client";
import * as React from "react";
import { ChainProvider } from "@cosmos-kit/react";
import { chains, assets } from "chain-registry";
import { wallets } from "@cosmos-kit/keplr";
import "@interchain-ui/react/globalStyles";
import "@interchain-ui/react/styles";
export function CosmosProvider({ children }: { children: React.ReactNode }) {
return (
<ChainProvider
chains={chains} // supported chains
assetLists={assets} // supported asset lists
wallets={wallets} // supported wallets
// walletConnectOptions={...} // required if `wallets` contains mobile wallets
>
{children}
</ChainProvider>
);
}
Hopefully it can help solving your issue.
@agonist This solved the issue for me, Thanks!
For the "pino-pretty" error you can update your next config this way:
const nextConfig = { webpack: (config) => { config.externals.push("pino-pretty"); return config; }, }
From Discord
dgabri3le | Gelotto
:Getting these errors while using CK within next14 app router:
Moved everything over into the old pages router No more hydration error, but when the modal opens up, I'm getting
The 50 error messages are all Failed to decode downloaded font: https://fonts.googleapis.com/css?family=Inter I had removed next/font with this repo I can add it back in, but perhaps its best not to have CK assume it's there -- if that's indeed what's happening. Not sure yet Added next/font back but no difference