Home > Back-end >  Serve Angular14 without minification/uglification
Serve Angular14 without minification/uglification

Time:10-14

Is there a way to disable all sorts of minification/uglification in the SERVE process, so it doesn't rename class names that are part of the error message?

It's the last Angular14 version.

Error message I'm receiving:

NullInjectorError: R3InjectorError(i)[e -> InjectionToken Application Initializer -> [object Object] -> j -> b -> Tt -> J -> Tt -> Tt -> Tt]: NullInjectorError: No provider for Tt!

CodePudding user response:

The serve process should NOT minify and uglify your code.

If it does, check your angular.json file and in the serve part, set this

"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
  • Related