Vue example: middlewares not a function error
See original GitHub issueHi, I’m experimenting building out a basic custom plugin which I am looking to add to the vue example. When I add even the most basic custom plugin (like the one in the docs that does nothing) I am getting the following error:
applyMiddleware.js?05f2:39 Uncaught TypeError: middleware is not a function at eval (applyMiddleware.js?05f2:39) at Array.map (<anonymous>) at eval (applyMiddleware.js?05f2:38) at <anonymous>:1:28399 at createStore (createStore.js?61ed:51) at analytics (analytics.browser.es.js?4747:3847) at eval (analytics.js?da7c:4) at Module../src/analytics.js (app.js:2662) at __webpack_require__ (app.js:726) at fn (app.js:101)
I’m guessing its some sort of dependency version problem(?) but would really appreciate any insight.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Oops yeah looks like demos need to be updated to latest https://github.com/DavidWells/analytics/blob/master/examples/vue/package.json#L14
NAMESPACE was changed to name. It sounds like that version of analytics needs to get updated to 0.3.0 in the demo
NAMESPACE and name both work (for backwards compatibility) but older analytics version won’t understand ‘name’