Closed sconnor-npr closed 4 years ago
Hi @sconnor-npr
{
"scripts": {
"postinstall": "node-config-ts"
}
}
npm i
or yarn
.I did. Version 2.3.1 and down works as expected. It looks like versions before 3.0.0 include an index.d.ts
file with the following contents that do not exist in the newer versions:
* Created by tushar on 30/12/17.
*/
export declare const config: Config;
Do you have a local tsconfig.json
? If you don't can you try this command and create one?
tsc --init
I do have a tsconfig.json
. Is there a reason the index.d.ts
file wasn't included in versions > 3.0.0?
The type-def is created inside config.d.ts
I don't think we needed index.d.ts
anyways. That's why it was removed.
Can you create a quick repro on github maybe that I can checkout?
I have the same problem, any updates on how it was solved?
@tusharmath this issue should be open. Facing it with v3.0.4
v2.2.4 worked for me, but 3.x does not (with the mentioned error) v3.1.0 is affected too
same issue here. I already tried moving the config folder to the typeroots but is isnt working as intended.
Please open create a bug report and I would be happy to help. Closing this conversation.
I'm getting the following errors starting at version 3.0.0.
Could not find a declaration file for module 'node-config-ts'. '.../node_modules/node-config-ts/index.js' implicitly has an 'any' type. Try
npm install @types/node-config-tsif it exists or add a new declaration (.d.ts) file containing
declare module 'node-config-ts';ts(7016)
.It looks as though the index.d.ts file is missing from the node_modules sub-directory. Everything works fine before version 3.0.0.