Topic: use strict in mdb.js prevent bundle & minifying

fmaeseele pro asked 5 years ago


Expected behavior When using Bundle&Minifier under Visual Studio with MDBootStrap (mdb.js), no ERROR. Using budle&minifier under Visual Studio allows to debug code when in development, and minify all the Javascripts libs into one file for production.

Actual behavior When using Bundle&Minifier, got these errors since version 4.9.0:

\wwwroot\dist\bundle.min.js(33845,45,33845,45): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: namesCount \wwwroot\dist\bundle.min.js(34626,33,34626,33): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: r \wwwroot\dist\bundle.min.js(34626,40,34626,40): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: g \wwwroot\dist\bundle.min.js(34626,47,34626,47): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: b \wwwroot\dist\bundle.min.js(34629,33,34629,33): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: r \wwwroot\dist\bundle.min.js(34629,40,34629,40): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: g \wwwroot\dist\bundle.min.js(34629,47,34629,47): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: b \wwwroot\dist\bundle.min.js(34632,33,34632,33): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: r \wwwroot\dist\bundle.min.js(34632,40,34632,40): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: g \wwwroot\dist\bundle.min.js(34632,47,34632,47): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: b \wwwroot\dist\bundle.min.js(34635,33,34635,33): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: r \wwwroot\dist\bundle.min.js(34635,40,34635,40): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: g \wwwroot\dist\bundle.min.js(34635,47,34635,47): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: b \wwwroot\dist\bundle.min.js(34638,33,34638,33): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: r \wwwroot\dist\bundle.min.js(34638,40,34638,40): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: g \wwwroot\dist\bundle.min.js(34638,47,34638,47): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: b \wwwroot\dist\bundle.min.js(34641,33,34641,33): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: r \wwwroot\dist\bundle.min.js(34641,40,34641,40): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: g \wwwroot\dist\bundle.min.js(34641,47,34641,47): Bundler & Minifier error 0: Strict-mode does not allow assignment to undefined variables: b

According to javascript, these errors are normal regarding the code. You try to assign undefined variables. Please correct these issues.


Bartłomiej Malanowski staff commented 5 years ago

how can we reproduce your issue?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.10.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No