Base solution for your next web application
Open Closed

Error minifying app-layout-libs.js #6696


User avatar
0
geertveenstra created

Hi,

Using ASP.NET Core MVC & JQuery version 6.8.0 I have just migrated my project to version 6.8.0, but during testing I get javascript errors.

During the minifying process I receive following error:

Processing wwwroot/view-resources/Areas/App/Views/_Bundles/app-layout-libs.js Bundled Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Processing wwwroot/view-resources/Areas/App/Views/_Bundles/host-dashboard-libs.js Bundled Minified

I have also tried with a fresh downloaded copy of 6.8.0, but I am receiving the same errors with that. After some trial and error it seems that the line wwwroot/lib/chart.js/dist/Chart.bundle.min.js is causing the problems. On which pages is this package used (maybe I can leave it out of the bundle)?


1 Answer(s)
  • User Avatar
    0
    geertveenstra created

    Ok, never mind. Seems I mistakenly deleted the yarn.lock on migrating which caused some packages to download a newer (not compatible) version.