Invalid module name in augmentation- index.d.ts

See original GitHub issue

Hi, i’m looking for some help with the following issue:

Using

joi-extract-type: 15.0.1
@hapi/joi": 15.1.1

I’m importing in with the following: import 'joi-extract-type'

In the node module file index.d.ts i’m having the following error: module “@hapi/joi” Invalid module name in augmentation. Module ‘@hapi/joi’ resolves to an untyped module at ‘/Users/johnanderson/Documents/GitHub/error-handling-class-spike/node_modules/@hapi/joi/lib/index.js’, which cannot be augmented.ts(2665)

Thanks

John

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
janders4commented, Nov 12, 2019

@TCMiranda, thanks, all is working now

0reactions
TCMirandacommented, Nov 12, 2019

Updated on 15.0.2, if you could test on your setup, it would be awesome. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

error TS2664: Invalid module name in augmentation #9748
I am getting a similar error: [ts] Invalid module name in augmentation. Module 'shiitake' resolves to an untyped module at 'd:/dev/foo/foobar.
Read more >
Invalid module name in augmentation - not able to resolve for ...
declare module 'node-helper-lib' { import * as SomeThirdParty from 'node-helper-lib'; interface Helper { new(opt: SomeThirdParty.
Read more >
Microsoft/TypeScript - Gitter
I get the error: Invalid module name in augmentation. ... module 'project/submodule' , even though the project/submodule folder contains an index.d.ts file.
Read more >
"Error TS2665: Invalid module name in augmentation ...
DevExpress Support Team: CLONED FROM T1117410: DataGrid - Excel's drop-down items are not shown if DataGrid is exported without data] Hi Ma.
Read more >
TypeScript: Invalid module name in augmentation - rzslider.d.ts
Module 'angular' resolves to an untyped module at /node_modules/angular/index.js', which cannot be augmented.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found