The generate
option does not work with a fresh project of Vite with React
#552
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Bug Report
I created an online demo here: https://stackblitz.com/edit/vitejs-vite-if2xwg?file=tsconfig.json
The only thing I added to the newly created project is the
src/typia-templates
folder.Running the following command:
npx typia generate --input src/typia-templates --output src/typia-generated --project tsconfig.json
produces the following error:
Now, I did some digging and it looks like the problem is fixed when I open
tsconfig.json
and replace"moduleResolution": "Node",
with"moduleResolution": 2,
. Looks like typescript doesn't like receiving the normal value fromtsconfig.json
, it wants the enum representation instead.I was able to bypass the issue by creating
typia.tsconfig.json
with the following content:(Bypass found thanks to this issue and this issue
The text was updated successfully, but these errors were encountered: