HiveBrain v1.2.0
Get Started
← Back to all entries
debugtypescriptangularCritical

error TS1192: Module '" A.module"' has no default export

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
errorhasmodulets1192exportdefault

Problem

I have created a new module 'A' and trying to import it in another module called 'B'. I am getting this error on compiling that says

error TS1192: Module '" A.module"' has no default export

Can anyone please help on how to solve this error.

Solution

This was a simple error. It occurred due to the missing {} around the module name in the import statement itself.

Context

Stack Overflow Q#40429927, score: 302

Revisions (0)

No revisions yet.