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
cje13mo ago
Is the error in the process.env line?
cje
cje13mo ago
Create T3 App
Environment Variables 🚀 Create T3 App
The best way to start a full-stack, typesafe Next.js app.
tyler4949
tyler494913mo ago
No, its the whole block
tyler4949
tyler494913mo ago
Here's what I see
cje
cje13mo ago
You’re passing something that’s typed as any somewhere in that block
tyler4949
tyler494913mo 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
cje13mo ago
Oh yea can also just be ts or eslint served
Josh
Josh13mo ago
Make sure your tsconfig is ignoring your node_modules
Want results from more Discord servers?
Add your server
More Posts
Which content creator offers the best material to learn Nextjs?I know and have a bit of experience with React and would like to learn Nextjs solidly.How to read client env using env-nextjswhen attempting to read client variables env.ms always seem to fail on createEnv. I have defined it Loads of questions on setting up ESLint and Prettier for different IDEsTheo's recent video about Prettier promted me to look into eslint and prettier and make sure it's seWhere in create t3 app project can I put a proxy server?I would like to have a proxy server that runs along side my web server. This is the server I'm using<template> and stubborn hydration warnings...So in case you don't know, here's the default behavior of declarative shadow DOM: 1. `<template shadAPI Layer with App DirHi all, With tRPC still in limbo with the new app directory, I’m tempted to go back to GraphQL as mIs there a way with app dir layouts to do something like "island" based pages?I am making a dashboard where various sections are shown depending on the url. Is there a way I can Add token requirement to public TRPC endpoint to add to DB (create-t3-app)I've created a public TRPC endpoint on the exampleRouter like so: ``` export const exampleRouter = Javascript / Typescript ORMs like Drizzle or PrismaGuys sorry i know this is a very beginner question. I've been mostly a backend developer most of my VSCode Debugging - Does Client Side debugger break points work?So I've got server side debugging working in VSCode with breakpoints but I can't for the life of me