bbonnin / vue-morris

VueJS component wrapping Morris.js
MIT License
235 stars 36 forks source link

jQuery is not defined #3

Closed byronferguson closed 7 years ago

byronferguson commented 7 years ago

Cleaned my node_modules and reinstalled everything, but no luck

vue-morris.min.js?e7da:6 Uncaught ReferenceError: jQuery is not defined
    at Object.eval (eval at <anonymous> (build.js:1974), <anonymous>:6:410)
    at Object.eval (eval at <anonymous> (build.js:1974), <anonymous>:7:3442)
    at e (eval at <anonymous> (build.js:1974), <anonymous>:1:251)
    at Object.t.__esModule.default (eval at <anonymous> (build.js:1974), <anonymous>:7:7256)
    at e (eval at <anonymous> (build.js:1974), <anonymous>:1:251)
    at Object.eval (eval at <anonymous> (build.js:1974), <anonymous>:7:4049)
    at e (eval at <anonymous> (build.js:1974), <anonymous>:1:251)
    at Object.eval (eval at <anonymous> (build.js:1974), <anonymous>:7:13681)
    at e (eval at <anonymous> (build.js:1974), <anonymous>:1:251)
    at eval (eval at <anonymous> (build.js:1974), <anonymous>:1:640)
bbonnin commented 7 years ago

Are you using webpack ? If yes, maybe you should take a look at https://github.com/bbonnin/vue-morris-example/ (jquery is declared in webpack.config.js).

byronferguson commented 7 years ago

Thanks. I noticed that a little earlier, and now it is working. Did I just miss that in the set-up documentation for this component library? If not, then I would recommend amending required set-up parameters in the docs along with the npm install command.

bbonnin commented 7 years ago

You are right, I will update the README. Thanks !

IYTEC commented 5 years ago

Hi @bbonnin, I am having the same issue as @byronferguson, I don't have a webpack.config.js file. What do you suggest is the way forward for me?