Skip to content

Error: Dynamic require of \"dns\" is not supported #107

@qiaozhi-4

Description

@qiaozhi-4

Current version :"frida-compile": "^19.0.4"
frida:16.*
I used the ioredis library in the project.
In node_modules\ioredis\built\index.js, I found the cluster. It was imported like this:

Image

I also found that dns was imported like this:

Image

Why is cluster statically imported after compilation while dns is dynamically imported? Is it because there is dns in frida 17.*?(My guess)
This is the difference after compilation:
cluster

Image

Jump to this function

Image

dns

Image

Jump to this function

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions