enter image description hereMy admin store was working correctly search on google and follow this question created file as given but still problem is exist

if any developer can explain what i am doing wrong ?? in the above link some pls describe the above related procedure

  • can you please post your code?
    – Mohit Rane
    Commented Jul 13, 2019 at 19:05
  • The thing is we are getting this error randomly when using the store configuration . So we are not sure where it's coming from Commented Jul 15, 2019 at 7:58
  • check the var/log/ files
    – Mohit Rane
    Commented Jul 15, 2019 at 8:06
  • @JunaidKhan Have you customized any anything ? Commented Jul 15, 2019 at 12:40
  • No just installed cc-venue module Commented Jul 16, 2019 at 9:20

1 Answer 1


This is an issue with core file https://github.com/magento/magento2/issues/17008. Please make the following changes and it will disappear.

  1. Navigate to your Magento Root Directory

  2. Open the file lib/web/jquery/colorpicker/js/colorpicker.js

  3. Find the below lines in your code nearby line no 10

    define([ "jquery", ], function ($) { var ColorPicker = function () {

  4. Change the line define([ to define("mage/colorpicker", [ so your code will look like

    define("mage/colorpicker", [ "jquery", ], function ($) { var ColorPicker = function () {

  • Thanks brother one error has been solved the other undefned function is still exist can help with that also is there way to know the file structure of your magento store Commented Jul 16, 2019 at 6:40
  • Can you post that error Commented Jul 16, 2019 at 9:28
  • imgur.com/FpKHxsS u can see the image for error Commented Jul 16, 2019 at 10:09
  • Is the color picker function is used in any third-party modules or your own module Commented Jul 16, 2019 at 10:13
  • third party modules Commented Jul 16, 2019 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.