# Cannot find module 'normalizr'

**URL:** <https://forum.ionicframework.com/t/cannot-find-module-normalizr/52823>\
**Category:** ionic-v3\
**Created:** [May 24, 2016, 6:39am UTC](https://forum.ionicframework.com/t/cannot-find-module-normalizr/52823 "2016-05-24T06:39:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![infoproducts](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/infoproducts/32/100372_2.png) [@infoproducts](https://forum.ionicframework.com/u/infoproducts)\
**Post date:** [May 24, 2016, 6:39am UTC](https://forum.ionicframework.com/t/cannot-find-module-normalizr/52823/1 "2016-05-24T06:39:54Z")

</div>

Hi!

I’m trying to use ‘normalizr’ in my Ionic 2 app (See here: [https://github.com/paularmstrong/normalizr](https://github.com/paularmstrong/normalizr)).

I installed as instructed in the README:

`npm install --save normalizr`

And when I try to import using:

`import {normalize, Schema, arrayOf} from 'normalizr';`

I get an error from the Visual Studio and the TypeScript compiler in the terminal:

`app/store/products/products.model.ts(5,42): Error TS2307: Cannot find module 'normalizr'.`

I tried re-installing, manually removing node\_modules dir and doing a fresh `npm install` without success.

Does anybody have a clue what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![AntonioMendez](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/antoniomendez/32/100730_2.png) [@AntonioMendez](https://forum.ionicframework.com/u/AntonioMendez)\
**Post date:** [May 24, 2016, 7:07am UTC](https://forum.ionicframework.com/t/cannot-find-module-normalizr/52823/2 "2016-05-24T07:07:50Z")

</div>

Hi,  
Have you tried installing the Typescript typings for that library?.

> <https://stackoverflow.com/questions/37028649/error-ts2307-cannot-find-module-bluebird>

---

<div class="post-metadata">

**Author:** ![infoproducts](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/infoproducts/32/100372_2.png) [@infoproducts](https://forum.ionicframework.com/u/infoproducts)\
**Post date:** [May 24, 2016, 7:23am UTC](https://forum.ionicframework.com/t/cannot-find-module-normalizr/52823/3 "2016-05-24T07:23:00Z")

</div>

Hi!

Actually I did try:

```
bash-3.2$ typings search normalizr
Viewing 1 of 1

NAME SOURCE HOMEPAGE DESCRIPTION VERSIONS UPDATED
normalizr dt https://github.com/gaearon/normalizr/ 1 2016-05-01T13:07:29.000Z
bash-3.2$ typings install --save normalizr
typings ERR! message Unable to find "normalizr" ("npm") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/normalizr/versions/latest responded with 404, expected it to equal 200

typings ERR! cwd /Users/kim/ionic/Mindly
typings ERR! system Darwin 15.5.0
typings ERR! command "/Users/kim/.nvm/versions/node/v4.4.2/bin/node" "/Users/kim/.nvm/versions/node/v4.4.2/bin/typings" "install" "--save" "normalizr"
typings ERR! node -v v4.4.2
typings ERR! typings -v 1.0.4

typings ERR! If you need help, you may report this error at:
typings ERR! <https://github.com/typings/typings/issues>

```

But I think it sounds wrong that I _NEED_ the typings to import it. Typings should only be for the Intellisense in the editor, no?

---

<div class="post-metadata">

**Author:** ![AntonioMendez](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/antoniomendez/32/100730_2.png) [@AntonioMendez](https://forum.ionicframework.com/u/AntonioMendez)\
**Post date:** [May 24, 2016, 7:32am UTC](https://forum.ionicframework.com/t/cannot-find-module-normalizr/52823/4 "2016-05-24T07:32:39Z")

</div>

Take a look at this line:

```
NAME SOURCE HOMEPAGE DESCRIPTION VERSIONS UPDATED
normalizr dt https://github.com/gaearon/normalizr/ 1 2016-05-01T13:07:29.000Z

```

the source is **dt** (_DefinitelyTyped_). According to [Typings doc](https://github.com/typings/typings), you need to specify the source if it is not the default one (npm) and add `--global` arg in order to install it.

> # If you use the package through script tag, or

# it is part of the environment, or

```
# the non-global typings is not yet available:
typings install dt~mocha --global --save

```

---

<div class="post-metadata">

**Author:** ![infoproducts](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/infoproducts/32/100372_2.png) [@infoproducts](https://forum.ionicframework.com/u/infoproducts)\
**Post date:** [May 24, 2016, 7:48am UTC](https://forum.ionicframework.com/t/cannot-find-module-normalizr/52823/5 "2016-05-24T07:48:13Z")

</div>

I see.

I installed the typings globally, and now there are no errors in Visual Studio. I thought all was good until I tried building:

`TypeScript error: /Users/kim/ionic/Mindly/app/store/products/products.reducer.ts(2,42): Error TS2307: Cannot find module 'normalizr'.`

It seems something else is wrong:-/

Thank you for your suggestions, it is appreciated!

---

<div class="post-metadata">

**Author:** ![AntonioMendez](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/antoniomendez/32/100730_2.png) [@AntonioMendez](https://forum.ionicframework.com/u/AntonioMendez)\
**Post date:** [May 24, 2016, 7:52am UTC](https://forum.ionicframework.com/t/cannot-find-module-normalizr/52823/6 "2016-05-24T07:52:30Z")

</div>

I hope this can help you:

> [@Gulp fails on type definitions added via typings while VS2015 has no problem](https://forum.ionicframework.com/t/gulp-fails-on-type-definitions-added-via-typings-while-vs2015-has-no-problem/52497/4):
>
> Reading some docs about gulp.js and how tasks work, I found myself asolution and it is quite simple. In [gulpfile.js](https://github.com/AYOZEMONZON/SnappyMap/blob/add-rabbitmq-1/gulpfile.js), there is a variable that needs the ionic-gulp-browserify-typescript library. This library uses Browserify to transpile and bundle the TypeScript source files.: var buildBrowserify = require('ionic-gulp-browserify-typescript'); As you can see in the [npm API doc](https://www.npmjs.com/package/ionic-gulp-browserify-typescript) of the library, there is an option (src) which says: src (string|File|Array) String, file object, or array of those …

---

<div class="post-metadata">

**Author:** ![infoproducts](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/infoproducts/32/100372_2.png) [@infoproducts](https://forum.ionicframework.com/u/infoproducts)\
**Post date:** [May 24, 2016, 5:55pm UTC](https://forum.ionicframework.com/t/cannot-find-module-normalizr/52823/7 "2016-05-24T17:55:37Z")

</div>

Thanks! I got it working:-)
