Directory tree:
.
├── package.json
├── src
│ ├── entrypoint.tsx
│ ├── index.html
│ └── ui
│ ├── App.tsx
│ └── shared
│ └── Reset.ts
├── start.sh
└── tsconfig.json
TypeScript's tsconfig.json
sets paths
to
Parcel's ~
module resolution convention
and baseUrl
to src
directory.
Parcel is given src/index.html
as its input,
which references src/entrypoint.tsx
.
All TypeScript files in src
may use the ~
non-relative import paths.
I've got my project set up like this:
and my tsconfig.json set up exactly like yours. Typescript is happy with it, but parcel throws an error:
No idea what I'm doing wrong here... Any insight?