question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Runtime Error ctorParameters.map is not a function

See original GitHub issue

I’m submitting a

[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[x] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior I’m trying to use this component with ionic 2 but is not working, I’m getting this error: "Runtime Error ctorParameters.map is not a function"

Stack

TypeError: ctorParameters.map is not a function
    at ReflectionCapabilities.parameters (/Users/ernaneluis/Developer/schild/SchildApp/node_modules/@angular/core/src/reflection/reflection_capabilities.js:61:45)
    at Reflector.parameters (/Users/ernaneluis/Developer/schild/SchildApp/node_modules/@angular/core/src/reflection/reflector.js:29:44)
    at CompileMetadataResolver.getDependenciesMetadata (/Users/ernaneluis/Developer/schild/SchildApp/node_modules/@angular/compiler/src/metadata_resolver.js:449:54)
    at CompileMetadataResolver.getTypeMetadata (/Users/ernaneluis/Developer/schild/SchildApp/node_modules/@angular/compiler/src/metadata_resolver.js:414:26)
    at eval (/Users/ernaneluis/Developer/schild/SchildApp/node_modules/@angular/compiler/src/metadata_resolver.js:557:41)
    at Array.forEach (native)
    at CompileMetadataResolver.getProvidersMetadata (/Users/ernaneluis/Developer/schild/SchildApp/node_modules/@angular/compiler/src/metadata_resolver.js:537:19)
    at eval (/Users/ernaneluis/Developer/schild/SchildApp/node_modules/@angular/compiler/src/metadata_resolver.js:235:71)
    at Array.forEach (native)
    at CompileMetadataResolver.getNgModuleMetadata (/Users/ernaneluis/Developer/schild/SchildApp/node_modules/@angular/compiler/src/metadata_resolver.js:226:44)

Reproduction of the problem at app.module.ts in @NgModule when I try to add this

TranslateModule.forRoot() or

  TranslateModule.forRoot({
        provide: TranslateLoader,
        useFactory: (createTranslateLoader),
        deps: [Http]
      })

in imports then I get that error.

My environment:

Ionic Framework: 2.0.0-rc.3 Ionic Native: 2.2.3 Ionic App Scripts: 0.0.46 Angular Core: 2.1.1 Angular Compiler CLI: 2.1.1 Node: 7.2.0 OS Platform: macOS Sierra Navigator Platform: MacIntel User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 OPR/42.0.2393.94

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
ernaneluiscommented, Dec 29, 2016

I fix this issue by running: npm install

I have forgotten to do this.

0reactions
ocombecommented, Feb 7, 2017

Closing this, let me know if you need it to be reopened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ctorParameters.map is not a function - Stack Overflow
I started receiving following error. I tried removing Ng2Webstorage and my app works fine. "(SystemJS) ctorParameters.map is not a function ...
Read more >
[SOLVED] Ionic serve: ctorParameters.map is not a function
Hi everyone,. When I run ionic serve on Windows Command Prompt the Google chrome developer console throws the following error:
Read more >
Angular – .map is not a function - David Votrubec
The error occurred only during runtime. The error said something like “map is not a function at blablabla” and on the first glance...
Read more >
SebastianM/angular2-google-maps - Gitter
I guess you want to set this during runtime? ... I have a problem, how can I add a search function to my...
Read more >
angular/core - UNPKG
n * The DI framework provides null if the dependency is not found. ... out to a specific function as a timing of\n...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found