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

Npm run build fails #8170


User avatar
0
sebastian.morar created

Hi,

Since a week ago I started receiving an error when running npm run build Running npm run create-bundles works fine.

The error is: SyntaxError in plugin "gulp-uglify-es" Message: 'return' outside of function Details: filename: layout.js line: 346 col: 1 pos: 9409 domainEmitter: [object Object] domain: [object Object] domainThrown: false

Could you please help me find the solution?

Thank you, Sebastian Morar


1 Answer(s)
  • User Avatar
    0
    sebastian.morar created

    It seems that theme9 is the culprit as it has an extra }. I fix it altering layout.js in src\SmartManole.Web.Mvc\wwwroot\metronic\themes\theme8\js\ as shown below