T3 App ESLint Errors

I just created my first t3 app and am getting a ton of Unsafe assignment of an 'any' value linting errors while importing 3rd party libs and using that in my app. All types are imported from the lib so Im not sure why this would be happening. Any idea? Ill include an example of a block of code that is giving this error:
import { configureChains } from "wagmi";
import { publicProvider } from "wagmi/providers/public";
import { mainnet, polygon, optimism, arbitrum, goerli } from "wagmi/chains";

const { chains, publicClient, webSocketPublicClient } = configureChains(
[
mainnet,
polygon,
optimism,
arbitrum,
...(process.env.NEXT_PUBLIC_ENABLE_TESTNETS === "true" ? [goerli] : []),
],
[publicProvider()]
);
import { configureChains } from "wagmi";
import { publicProvider } from "wagmi/providers/public";
import { mainnet, polygon, optimism, arbitrum, goerli } from "wagmi/chains";

const { chains, publicClient, webSocketPublicClient } = configureChains(
[
mainnet,
polygon,
optimism,
arbitrum,
...(process.env.NEXT_PUBLIC_ENABLE_TESTNETS === "true" ? [goerli] : []),
],
[publicProvider()]
);
Errors - Unsafe assignment of an any value. - Unsafe call of an any typed value.
8 Replies
cje
cje2y ago
Is the error in the process.env line?
cje
cje2y ago
Create T3 App
Environment Variables 🚀 Create T3 App
The best way to start a full-stack, typesafe Next.js app.
tyler4949
tyler4949OP2y ago
No, its the whole block
tyler4949
tyler4949OP2y ago
Here's what I see
cje
cje2y ago
You’re passing something that’s typed as any somewhere in that block
tyler4949
tyler4949OP2y ago
They should all have types, I use this is another typescript project and dont have errors. They seem to have gone away, so Im not sure if it was just a vscode issue or something weird is going on with my linter
cje
cje2y ago
Oh yea can also just be ts or eslint served
Josh
Josh2y ago
Make sure your tsconfig is ignoring your node_modules
Want results from more Discord servers?
Add your server