Ask coding questions
Hi, I just installed TypeScript in a Next.js project and when I try to import from react it just says, "Cannot find module 'react'."
You don't need to import react in a next project
@PDanielY The fact that I'm not using any of the library doesn't mean that it will work, I will add a useState that changes an input to show that the error persists
@PDanielY I just added a simple useState + input, that does need to import React, and even the JSX is showing the error "Cannot Find React"
I have this same issue, any guidance?
what is the goal of this repl?
@Zuhdi28 to show TypeScript + Next.js?
The code actually runs ok, and it type-checks, but the editor itself shows it like an error
@PabloSzx I have the same stange thing in my https://repl.it/@maxbethke/HeroesBackend. I feel like the project type should be typescript instead of node.js