Thanks to visit codestin.com
Credit goes to github.com

Skip to content

use require("history").createHashHistory instead of require("history/createHashHistory")Β #2521

@CleverLiurx

Description

@CleverLiurx

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/dva/lib/index.js b/node_modules/dva/lib/index.js
index 0050183..9d1d505 100644
--- a/node_modules/dva/lib/index.js
+++ b/node_modules/dva/lib/index.js
@@ -19,7 +19,7 @@ var _react = _interopRequireDefault(require("react"));
 
 var _invariant = _interopRequireDefault(require("invariant"));
 
-var _createHashHistory = _interopRequireDefault(require("history/createHashHistory"));
+var _createHashHistory = _interopRequireDefault(require("history").createHashHistory);
 
 var _reactRouterRedux = require("react-router-redux");
 

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions