Compile error, can't find custom module declaration in custom Typescript server #17465
Unanswered
Prottoy2938
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
Describe the bug
I'm using custom-server-typescript example on one of my applications. On that application I was using
youtube-captions-scraper
library. Since this library doesn't have its own type module, vscode code editor was showing an error and the compiling was failing.So I've declared own module type in the
next-env.d.ts
file. Nownext-env.d.ts
looks like this:After this change, vscode code editor wasn't showing any error, but the compiling was still failing, saying the same error:
Sample code repository here
Beta Was this translation helpful? Give feedback.
All reactions