From 9e47c94bdb4f66e610fb20be57620bd61e9a0aa7 Mon Sep 17 00:00:00 2001 From: Andreas Date: Mon, 15 Nov 2021 11:12:03 +0100 Subject: [PATCH] Add missing information about tsconfig.json That a file tsconfig.json is necessary was not mentioned (without it the error "The 'files' list in config file 'tsconfig.json' is empty" occurs), and making it clear that it does not have to be in the main project folder seems helpful. --- frontend/encore/typescript.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/encore/typescript.rst b/frontend/encore/typescript.rst index fbd0b616c86..1ecd101a061 100644 --- a/frontend/encore/typescript.rst +++ b/frontend/encore/typescript.rst @@ -20,6 +20,11 @@ Want to use `TypeScript`_? No problem! First, enable it: + //.enableForkedTypeScriptTypesChecking() ; +Then add a `tsconfig.json` file with the contents `{}` to the project folder, +or in the folder where your TypeScript files are located, like the `/assets` +folder. In `tsconfig.json` you can define more options on how to process +TypeScript, but defining no additional options will already work. + Then restart Encore. When you do, it will give you a command you can run to install any missing dependencies. After running that command and restarting Encore, you're done!