Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Source maps not working for error traces #108

Closed
samuelcolvin opened this issue Nov 16, 2017 · 3 comments
Closed

Source maps not working for error traces #108

samuelcolvin opened this issue Nov 16, 2017 · 3 comments

Comments

@samuelcolvin
Copy link

samuelcolvin commented Nov 16, 2017

Hi, I'm getting proper traces with non worker code. But with *.worker.js code I get raw trace on errors which are hard to read.

Is there someway to get worker-loader to play nicely with source-maps/devtools?

dependencies:

  "dependencies": {
    "babel-eslint": "^7.2.3",
    "date-fns": "^1.29.0",
    "dexie": "^2.0.1",
    "eslint": "^4.1.1",
    "eslint-config-react-app": "^2.0.1",
    "eslint-plugin-flowtype": "^2.34.1",
    "eslint-plugin-import": "^2.6.0",
    "eslint-plugin-jsx-a11y": "^5.1.1",
    "eslint-plugin-react": "^7.1.0",
    "lodash": "^4.17.4",
    "react": "^16.0.0",
    "react-app-rewired": "^1.3.3",
    "react-bootstrap-typeahead": "^2.0.0-alpha.6",
    "react-dom": "^16.0.0",
    "react-router-dom": "^4.2.2",
    "react-scripts": "1.0.14",
    "webpack": "3.0.0",
    "worker-loader": "^1.1.0"
  },

I'm using worker-load with non-ejected create-react-app, using this code.

Example of trace from chromium:

image

I hope that's enough information. If there's anything else you need let me know

update:

Forgot to say: all the links in the above trace are to the current url, not a js file.

If I disable the babel loader for *.worker.js files the trace works fine.

I've tried inline: true and inline: flase but to no avail.

@chaoyangnz
Copy link

+1

@mikehardenize
Copy link

I am also experiencing this issue

@alexander-akait
Copy link
Member

Close in favor #245

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants