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.

TypeError: Cannot redefine property: $map

See original GitHub issue

I’ve been asked to do some fixes on a project I developed with Claudia. I’ve tried to deploy them and I get the above error:

> claudia update
> updating REST API
> [TypeError: Cannot redefine property: $map]

I’ve had a look in the source (both Claudia and my own app) and can’t find anything that this might reference. I’ve tried to go back to 1.2.0, the last version I used to deploy successfully with no luck.

Locally I’m using node v4.4.1, although remove version is using node 4.3 (but I would not expect any major compatibility).

As an aside, one thing that might be useful is when there is an error to do the following:

console.log(error.stack)

As the stack is being swallowed up and only the error.message is being shown.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vitaly-tcommented, May 25, 2016

I have fixed this issue in pg-promise and released v.4.3.1.

It no longer uses custom array methods like $map, etc. And you should have absolutely no problem loading the library as many times as you need, it is not a non-reentrant library 😉

1reaction
vitaly-tcommented, May 25, 2016

I will be updating pg-promise to stop using $map and methods like that. Will provide an update when finished.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot redefine property: Map · Issue ...
Problem was a conflict with another script on the page which defined a "Map" function.
Read more >
javascript - Street View error - Stack Overflow
It appeared that we were redefining the function Map() within another one of our (now unused) JS files, renaming this function resolved the ......
Read more >
TypeError: can't redefine non-configurable property "x"
The JavaScript exception "can't redefine non-configurable property" occurs when it was attempted to redefine a property, but that property is ...
Read more >
Cannot redefine property: uniquelize while integrating ...
I am working integrating zoom meeting web SDK with existing react app which uses webpack. Browser Console Error Getting Uncaught TypeError: ...
Read more >
Errors: Cant Redefine Property - JavaScript - W3cubDocs
The JavaScript exception "can't redefine non-configurable property" occurs when it was attempted to redefine a property, but that property ...
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