Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Errors after adding 3rd party plugin #3445


User avatar
0
ervingayle created

I am migrating from Aspboilerplate where this worked into Asp.Net Zero and it has been fun. For the most part everything has gone well except for my views and plug-ins.

I am using a third party plug-in called Fusion Charts. <a class="postlink" href="http://www.fusioncharts.com/">http://www.fusioncharts.com/</a>

My environment is MVC + jQuery based. When I expand /Area/Mpa/Common there is a text file that says that I can place any shared plug-ins there and so I did. After this I got FusionCharts undefined errors. Since I am not using it on every page, I decided to remove the folder completely and just reference it where needed but now although I have removed the folder and its contents I get the JS error on every page and it has broken some of the functionality.

Reference details:

ReferenceError: FusionCharts is not defined[Learn More] js:799:54 /* Minification failed. Returning unminified contents. (1840,80-87): run-time error JS1019: Can't have 'break' outside of loop: break a (1840,320-327): run-time error JS1019: Can't have 'break' outside of loop: break a */

ReferenceError: FusionCharts is not defined[Learn More] js:10:54

TypeError: app.localStorage is undefined[Learn More] _ChatBar.js

Also I am trying to upgrade my jQuery version from 1.12.1 to 2.2. However, I noticed the version in /libs/jQuery is different than whats in /Scripts/* which is where the nuget package places the updated version that you select.

What am I doing wrong?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    When you place a js file under that folder, AspNet Zero tries to include it into common bundle here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/App_Start/Bundling/CommonBundleConfig.cs">https://github.com/aspnetzero/aspnet-ze ... eConfig.cs</a>.

    You deleted files from project but maybe some files left in that folder. Can you check that using windows explorer ?

    Also, can you check that localForage is referenced here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/packages.config#L39">https://github.com/aspnetzero/aspnet-ze ... config#L39</a> in your project.

    Lastly, lib folder contains some Metronic theme related js files. We cannot upgrade some of the if metronic does not support a newer version. That is whey there are two different versions of jQuery.

    Thanks.