Skip to content

Next.js does not bring over prebuilds folder into .next/server: "No native build was found for ..." #65

@eulersson

Description

@eulersson

When using a dependency that uses node-gyp-build prebuilt binaries, next does not seem to pick up those binaries.

The directory it searches for binaries is ./.next/server instead of ./node_modules/zeromq in my case. If I change this and hardcode it to /absolute/path/to/node_modules/zeromq it works because it sees that prebuilds.

dir = path.resolve(dir || '.')

As you might have noticed I am using a fork that was made on 4.5.0, because that's what was done for https://github.com/zeromq/zeromq.js

Note

Reproduce by cloning https://github.com/eulersson/zeromq.js-next.js-errors, npm install, npm run dev. Or by running the Docker container in there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions