Module not found: Error: Can't resolve 'components/..'

After thinking that I successfully configured Typescript into existing Aurelia project, via webpack and tsconfig.json - I get this error which points to the only .ts file I have.

ERROR in ./src/app.js
Module not found: Error: Can't resolve 'components/vulns/types-new/vuln-types' in '/Users/paul- 

Does anyone have any idea what this is?


1 Like

You may need to wrap your import in PLATFORM.moduleName()

something like:

export function configure(aurelia: Aurelia) {

Also look at the troubleshooting section at:

1 Like

Must reference components with .ts. . This makes ts compiler happy.

1 Like