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- 
mac/projects/yellow_pages/client/src'

Does anyone have any idea what this is?

thanks!

1 Like

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

something like:

export function configure(aurelia: Aurelia) {
  aurelia.use
    .standardConfiguration()
    .plugin(PLATFORM.moduleName('aurelia-validation'))
})

Also look at the troubleshooting section at:

1 Like

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

'components/vulns/types-new/vuln-types.ts'