Building with .js files with no type #311
Locked
walidvb
started this conversation in
Show & Tell
Replies: 1 comment 1 reply
-
Looks like there is a typo in your tsconfig: Current:
Suggested:
Ref: https://nextjs.org/docs/advanced-features/module-path-aliases |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am porting a codebase to typescript(and nextjs), and while my app builds cerrectly on my machine, I keep getting a
Type error: Cannot find module 'src/components/Drops/vailiens' or its corresponding type declarations.
error.Adding
// @ts-nocheck
at the top of the .js file resolves this(but i'd have to do it for every file.)My tsconfig is as follows. i tried various combinations of
allowJs
andcheckJs
, to no avail. Also, I barely made changes to thecreate-nextjs-app
configBeta Was this translation helpful? Give feedback.
All reactions