Стандартизация/Исправление/Геокодирование адреса

Обходной путь для этой проблемы, которую я нашел из Интернета, - это ...

Если вы просто хотите запустить программу в среде разработки, вы можете самостоятельно изменить код в 'response-cache / cjs / Reaction-cache.development.js': old:

    var currentOwner = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;

    function readContext(Context, observedBits) {
        var dispatcher = currentOwner.currentDispatcher;
        if (dispatcher === null) {
        throw new Error('react-cache: read and preload may only be called from within a ' + "component's render. They are not supported in event handlers or " + 'lifecycle methods.');
       }
       return dispatcher.readContext(Context, observedBits);
     }
[114 ] 'currentOwner' не используется, кроме как в функции readContext. Итак, вот новое:

      var currentDispatcher =      React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;

     function readContext(Context, observedBits) {
          var dispatcher = currentDispatcher.current;
          if (dispatcher === null) {
               throw new Error('react-cache: read and preload may only be called from within a ' + "component's render. They are not supported in event handlers or " + 'lifecycle methods.');
           }
          return dispatcher.readContext(Context, observedBits);
         }

И это работает в моем коде.

9
задан Enamul Hassan 15 July 2015 в 11:33
поделиться

1 ответ

Мы используем Melissa Data, они имеют много решений включая геокодирование и обращаются к нормализации. У них есть хорошие API, и поддержка была большой. Их решения работают над многими платформами и языками включая C и C++ на Unix. Не может думать ничто отрицательное о них.

5
ответ дан 3 November 2019 в 05:39
поделиться
Другие вопросы по тегам:

Похожие вопросы: