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

**URL:** <https://discourse.aurelia.io/t/module-not-found-error-cant-resolve-components/3336>\
**Category:** Framework Knowledge\
**Created:** [March 26, 2020, 7:26pm UTC](https://discourse.aurelia.io/t/module-not-found-error-cant-resolve-components/3336 "2020-03-26T19:26:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavlos](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@pavlos](https://discourse.aurelia.io/u/pavlos)\
**Post date:** [March 26, 2020, 7:26pm UTC](https://discourse.aurelia.io/t/module-not-found-error-cant-resolve-components/3336/1 "2020-03-26T19:26:50Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![robertb](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/robertb/32/470_2.png) [@robertb](https://discourse.aurelia.io/u/robertb)\
**Post date:** [March 26, 2020, 7:53pm UTC](https://discourse.aurelia.io/t/module-not-found-error-cant-resolve-components/3336/2 "2020-03-26T19:53:51Z")

</div>

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:

> **[Home](https://github.com/aurelia/webpack-plugin/wiki)**
>
> A plugin for webpack that enables bundling Aurelia applications. - aurelia/webpack-plugin

---

<div class="post-metadata">

**Author:** ![pavlos](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@pavlos](https://discourse.aurelia.io/u/pavlos)\
**Post date:** [March 27, 2020, 1:09pm UTC](https://discourse.aurelia.io/t/module-not-found-error-cant-resolve-components/3336/3 "2020-03-27T13:09:23Z")

</div>

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

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