{"action":"closed","issue":{"url":"https://api.github.com/repos/championswimmer/vuex-persist/issues/76","repository_url":"https://api.github.com/repos/championswimmer/vuex-persist","labels_url":"https://api.github.com/repos/championswimmer/vuex-persist/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/championswimmer/vuex-persist/issues/76/comments","events_url":"https://api.github.com/repos/championswimmer/vuex-persist/issues/76/events","html_url":"https://github.com/championswimmer/vuex-persist/issues/76","id":378163544,"node_id":"MDU6SXNzdWUzNzgxNjM1NDQ=","number":76,"title":"In browser: window.VuexPersistence() is not a constructor","user":{"login":"bmcminn","id":879984,"node_id":"MDQ6VXNlcjg3OTk4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/879984?v=4","gravatar_id":"","url":"https://api.github.com/users/bmcminn","html_url":"https://github.com/bmcminn","followers_url":"https://api.github.com/users/bmcminn/followers","following_url":"https://api.github.com/users/bmcminn/following{/other_user}","gists_url":"https://api.github.com/users/bmcminn/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcminn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcminn/subscriptions","organizations_url":"https://api.github.com/users/bmcminn/orgs","repos_url":"https://api.github.com/users/bmcminn/repos","events_url":"https://api.github.com/users/bmcminn/events{/privacy}","received_events_url":"https://api.github.com/users/bmcminn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-07T06:53:37Z","updated_at":"2018-11-20T14:03:34Z","closed_at":"2018-11-20T14:03:34Z","author_association":"NONE","body":"I'm trying to leverage this utility in-browser, and per the docs I've loaded `lodash` and `vuex-persist`, but I get met with an error that ` window.VuexPersistence is not a constructor`.\r\n\r\nBelow is a reduced sample case for my app:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>Demo App</title>\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"/resources/css/main.css\">\r\n</head>\r\n<body>\r\n    <div id=\"app\"></div>\r\n    \r\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.10/lodash.min.js\"></script>\r\n    <script src=\"https://cdn.jsdelivr.net/npm/vuex-persist\"></script>\r\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js\" integrity=\"sha256-mpnrJ5DpEZZkwkE1ZgkEQQJW/46CSEh/STrZKOB/qoM=\" crossorigin=\"anonymous\"></script>\r\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.min.js\" integrity=\"sha256-FtWfRI+thWlNz2sB3SJbwKx5PgMyKIVgwHCTwa3biXc=\" crossorigin=\"anonymous\"></script>\r\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.0.1/vue-router.min.js\" integrity=\"sha256-yEB9jUlD51i5kxJZlzgzfR6XmVKI76Nl1WRA1aqIilU=\" crossorigin=\"anonymous\"></script>\r\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/vuex/3.0.1/vuex.min.js\" integrity=\"sha256-1QlN0ckC4jlz91DZixPZxTv9vYpcBmS7sK7HA8xFmFA=\" crossorigin=\"anonymous\"></script>\r\n    <script src=\"/main.js\"></script>\r\n</body>\r\n</html>\r\n```\r\n\r\n```js\r\n// main.js\r\nconst vuexLocal = new window.VuexPersistence({\r\n    key:        'vuex',                 \r\n    storage:    window.localStorage,    \r\n});\r\n\r\nconst store = new Vuex.Store({\r\n    state: { //...\r\n    },\r\n    mutators: { //...\r\n    },\r\n    actions: { //...\r\n    },\r\n    getters: { //...\r\n    },\r\n    plugins: [\r\n        vuexLocal.plugin,\r\n    ],\r\n});\r\n```"}}
{"actor":{"display_login":"championswimmer"}}