Skip to content

Chrome: SourceMap links not working #289

@spyro2000

Description

@spyro2000

Hi there,

loving this library, using it every day with pure joy! :)

One of the coolest features might be the generated links to jump directly to the source. For some reason, that doesn't work for me. Clicking on one of the links just opens a new tab to about:blank instead:

image

(after clicking on the link)

image

Manually, I can open the file in the DevTools just fine:

image

Angular version 13.0.2:
ngx-logger version: 5.0.7
Chrome version: 97.0.4692.99 (running in debug mode without any plugins enabled)

Configuration (in app.module.ts):

imports: [
...
HttpClientModule,
LoggerModule.forRoot({
  level: environment.production ? NgxLoggerLevel.INFO : NgxLoggerLevel.DEBUG,
  serverLogLevel: NgxLoggerLevel.OFF,
  timestampFormat: 'HH:mm:ss.SSS',
  enableSourceMaps:true
})
]
  • I started angular dev environment with ng serve

Build config from angular.json:

    {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "stylePreprocessorOptions": {
              "includePaths": [
                "src/styles"
              ]
            },
            "styles": [
              "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
              "src/styles.scss"
            ],
            "scripts": [],
            "vendorChunk": true,
            "extractLicenses": false,
            "buildOptimizer": false,
            "sourceMap": true,
            "optimization": false,
            "namedChunks": true
          }

Did I miss something?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions