-
I'm trying React Preview with this component, and I'm getting this error:
This library internally uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @gnapse, long-time power user of Todoist here, so thank you for your work :) I think I found the issue. The following TypeScript alias is confusing React Preview (more specifically "paths": {
"@": ["./"],
"*": ["src/*", "node_modules/*"] // this line is the issue (specifically the node_modules alias)
}, The codebase seems to compile fine without it, so maybe you could simply remove it? Note: You may need to reload your IDE to force React Preview to restart (I'll make sure it restarts automatically when tsconfig.json is updated in the future). |
Beta Was this translation helpful? Give feedback.
Hey @gnapse, long-time power user of Todoist here, so thank you for your work :)
I think I found the issue. The following TypeScript alias is confusing React Preview (more specifically
vite-tsconfig-paths
, which is used under the hood):The codebase seems to compile fine without it, so maybe you could simply remove it?
Note: You may need to reload your IDE to force React Preview to restart (I'll make sure it restarts automatically when tsconfig.json is updated in the future).