squidfunk / karma-viewport

A Karma plugin for testing responsive features and layout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

404 for adapter sourcemap.

altearius opened this issue · comments

Description

When using Karma's debug runner, the Chrome devtools makes a request to load the adapter.js file's sourcemap, adapter\index.js.map.

The adapter\index.js.map file has not been included as one of the files that Karma is allowed to serve, so this generates a 404 error, both in the Chrome dev tools and in the Karma log.

Expected behavior

No 404 should occur and the sourcemap should load successfully.

Actual behavior

A 404 error is generated in the Chrome dev tools:

image

And in the Karma log:

image

Steps to reproduce the bug

  1. Open Karma in "Watch" mode with Chrome.
  2. In the Chrome tab, click "Debug" to open the Karma debug runner.
  3. Press F12 to open the Chrome Dev Tools. This triggers the request to the source map.
  4. Observe the 404 error.

Package versions

  • karma-viewport: 1.0.6
  • karma: 4.4.1

System information

  • OS: Windows 10
  • Chrome 83.0.4103.116

Fixed by #458.

Released as part of 1.0.7.