Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
48
rated 0 times [  50] [ 2]  / answers: 1 / hits: 29999  / 8 Years ago, mon, july 4, 2016, 12:00:00

I use Chart.js(new version) as :



<script src=~/Plugin/Chart.js/src/chart.js></script>


But when i demo in chrome, i get a error :



chart.js:4 Uncaught ReferenceError: require is not defined


Image


More From » jquery

 Answers
8

in your code, pull the bundle instead. E.g ~/Plugin/Chart.js/dist/Chart.bundle.js


[#61526] Friday, July 1, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
albert

Total Points: 652
Total Questions: 105
Total Answers: 108

Location: Pitcairn Islands
Member since Fri, Oct 15, 2021
3 Years ago
;