asantibanez / livewire-charts

Neat Livewire Charts for your Laravel projects
MIT License
788 stars 116 forks source link

I gat this error, and don't how this is happening Uncaught ReferenceError: init is not defined, after worked fine #38

Closed mundix closed 1 year ago

mundix commented 3 years ago

Hello there, im having this issue with the js apparently , few weeks ago my projects runnings well until ive noticed my chart dashboard won't start as a usual , ive displaying chart total users by month , nothing complex , and from yesterday i found this error on the js console , and i removed all my custom js even the css and. js framework foundation

My laravel version is 8 and livewire version is 2.4.2

Screen Shot 2021-04-09 at 7 01 34 PM

Console Error: Uncaught ReferenceError: init is not defined at eval (eval at saferEval (app.js:209), :3:36) at saferEval (app.js:209) at Component.evaluateReturnExpression (app.js:1788) at new Component (app.js:1548) at Object.initializeComponent (app.js:1946) at app.js:1889 at app.js:1905 at NodeList.forEach () at Object.discoverComponents (app.js:1904) at Object.start (app.js:1888) eval @ VM2058:3 saferEval @ app.js:209 evaluateReturnExpression @ app.js:1788 Component @ app.js:1548 initializeComponent @ app.js:1946 (anonymous) @ app.js:1889 (anonymous) @ app.js:1905 discoverComponents @ app.js:1904 start @ app.js:1888 setTimeout (async) initializeComponent @ app.js:1948 (anonymous) @ app.js:1889 (anonymous) @ app.js:1905 discoverComponents @ app.js:1904 start @ app.js:1888 async function (async) start @ app.js:1885 (anonymous) @ app.js:1975 (anonymous) @ dashboard:251 dispatch @ dispatch.js:6 value @ index.js:87 (anonymous) @ dashboard:256 app.js:1949 Uncaught ReferenceError: init is not defined at eval (eval at saferEval (app.js:209), :3:36) at saferEval (app.js:209) at Component.evaluateReturnExpression (app.js:1788) at new Component (app.js:1548) at Object.initializeComponent (app.js:1946) at app.js:1933 at app.js:1911 at Array.forEach () at Object.discoverUninitializedComponents (app.js:1910) at app.js:1932 eval @ VM2060:3 saferEval @ app.js:209 evaluateReturnExpression @ app.js:1788 Component @ app.js:1548 initializeComponent @ app.js:1946 (anonymous) @ app.js:1933 (anonymous) @ app.js:1911 discoverUninitializedComponents @ app.js:1910 (anonymous) @ app.js:1932 (anonymous) @ app.js:1926 setTimeout (async) initializeComponent @ app.js:1948 (anonymous) @ app.js:1933 (anonymous) @ app.js:1911 discoverUninitializedComponents @ app.js:1910 (anonymous) @ app.js:1932 (anonymous) @ app.js:1926 childList (async) create @ apexcharts:6 a.prepare @ apexcharts:6 (anonymous) @ apexcharts:6 app.js:1949 Uncaught ReferenceError: init is not defined at eval (eval at saferEval (app.js:209), :3:36) at saferEval (app.js:209) at Component.evaluateReturnExpression (app.js:1788) at new Component (app.js:1548) at Object.initializeComponent (app.js:1946) at app.js:1933 at app.js:1911 at Array.forEach () at Object.discoverUninitializedComponents (app.js:1910) at app.js:1932

luckys383 commented 3 years ago

@mundix did you get any solution for this?

asantibanez commented 1 year ago

Hello @mundix

Try updated to latest version and exporting livewire-charts:public using php artisan vendor:publish