Skip to content

Error while using sourcemaps #40

@alexw23

Description

@alexw23

I've been having issues using sourceMaps: true, it doesn't seem to append app://. After some debugging I found the cause to be the following line:

frame.filename = `app:///${path.basename(frame.filename)}`;

Wrapping this line in a try catch to log any errors, and throws the following error:

Cannot read properties of undefined (reading 'basename') at RewriteFrames.iteratee

In the dist/index.js file this looks like:

frame.filename = "app:///".concat(path_1.default.basename(frame.filename));

I updated this to the following to make it work:

frame.filename = "app:///".concat(path_1.basename(frame.filename));

I'm wondering if this import statement should be import * as path from 'path'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions