I am using React, TypeScript and Snowpack in a project. I am facing issue in path mapping.
This is the folder structure in my project:
tsconfig.json
snowpack.coonfig.js
App.tsx
This is the error I am getting:
Can anyone please help me fix this? What am I missing here?
If in App.tsx
, I ctrl+click
on HomePage
import, it takes me to that page but when I run yarn start
, it gives the above error.
You might need to add 'app' alias to snowpack config too so it recognizes it.