Uncaught TypeError: _.contains / _.pluck is not a function
See original GitHub issueWhen I edit custom piece, adn save, I get in ~50 % of cases this error:
user.js:96 Uncaught TypeError: _.contains is not a function
at HTMLDivElement.<anonymous> (user.js:96)
at Function.each (jquery-3.js:367)
at jQuery.fn.init.each (jquery-3.js:202)
at user.js:90
at user.js:162
at async.js:726
at async.js:52
at async.js:269
at async.js:44
at async.js:723
(anonymous) @ user.js:96
each @ jquery-3.js:367
each @ jquery-3.js:202
(anonymous) @ user.js:90
(anonymous) @ user.js:162
(anonymous) @ async.js:726
(anonymous) @ async.js:52
(anonymous) @ async.js:269
(anonymous) @ async.js:44
(anonymous) @ async.js:723
(anonymous) @ async.js:167
(anonymous) @ user.js:188
fire @ jquery-3.js:3291
fireWith @ jquery-3.js:3421
done @ jquery-3.js:9533
(anonymous) @ jquery-3.js:9785
load (async)
send @ jquery-3.js:9804
ajax @ jquery-3.js:9434
$.jsonCall @ jquery.json-call.js:25
self.api @ context.js:77
getEditable @ user.js:185
(anonymous) @ async.js:718
iterate @ async.js:262
(anonymous) @ async.js:274
(anonymous) @ async.js:44
(anonymous) @ async.js:723
(anonymous) @ async.js:167
(anonymous) @ user.js:175
fire @ jquery-3.js:3291
fireWith @ jquery-3.js:3421
done @ jquery-3.js:9533
(anonymous) @ jquery-3.js:9785
load (async)
send @ jquery-3.js:9804
ajax @ jquery-3.js:9434
$.jsonCall @ jquery.json-call.js:25
self.api @ context.js:77
getUncommittedTrash @ user.js:166
(anonymous) @ async.js:718
iterate @ async.js:262
async.forEachOfSeries.async.eachOfSeries @ async.js:281
_parallel @ async.js:717
async.series @ async.js:739
self.getEditable @ user.js:150
self.updateWorkflowControls @ user.js:71
(anonymous) @ user.js:65
emit @ always.js:34
pageReady @ always.js:113
(anonymous) @ always.js:124
b.<computed> @ VM2706 basketButton-18b6b0e727d0367eec93.js:1
g @ VM2706 basketButton-18b6b0e727d0367eec93.js:1
M @ VM2706 basketButton-18b6b0e727d0367eec93.js:1
followed with
user.js:106 Uncaught TypeError: _.pluck is not a function
at Object.success (user.js:106)
at fire (jquery-3.js:3291)
at Object.fireWith [as resolveWith] (jquery-3.js:3421)
at done (jquery-3.js:9533)
at XMLHttpRequest.<anonymous> (jquery-3.js:9785)
Sometimes is possible to continue work with CMS, sometimes it stuck on loader and is not possible to continue without reloading the page.
It’s not piece-related - I get the error when I open an any module.
There is thie video when I reproduce it:
I run this in production in AWS Elasticbeanstalk + assets are served via Cloudfront. When i use local assets on my development it is the same.
Node version: 6.4.1, built in docker (node:carbon) Apostrophe version: 2.96.0 Apostrophe-workflow: 2.24.0
Video: https://drive.google.com/file/d/1kl2TLtvcQvSSRQZswTv5CEA1_DkPj59K/view?usp=sharing
Thank you for any help how to fix this.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
What happened to Lodash _.pluck? - Stack Overflow
I went to the docs, hit cmd-f, typed 'pluck', but my poor abandoned friend is not even given a proper mention...not even a...
Read more >Uncaught TypeError: _.pluck is not a function causing issues ...
Opening the inspection console in chrome, I get the following error in the log. Uncaught TypeError: _.pluck is not a function at Object.setMarkers...
Read more >TypeError: contains is not a function in JavaScript | bobbyhadz
The "contains is not a function" error occurs for multiple reasons: trying to use the contains() method to check if a value is...
Read more >Uncaught TypeError: _.pluck is not a function - Bountysource
Looks like the lodash version was updated but in the same ember-charts version? See More. View in GitHub. SOLVE ISSUE.
Read more >What is the replacement of lodash pluck() method?
Pluck has been removed from lodash 4. This is because it did the same thing as a map. As a replacement, you can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No problem. In A3 this won’t be an issue anymore
On Wed, Sep 18, 2019 at 5:29 AM David notifications@github.com wrote:
– Chief Software Architect Apostrophe Technologies Pronouns: he / him / his
Sorry, it was loaded via some external React components 👍