Skip to content

Bug: polyfill of path doesn't work with remix #107

@nikolailehbrink

Description

@nikolailehbrink

Summary

Hi there, I tried to polyfill the "path" module I get the following error:

module is not defined
at eval (.../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js:531:1)

Steps to reproduce

  • Create a new remix project with pnpm create remix

  • Add the join function in a client code.

  • Add this plugin with the following config:

    nodePolyfills({
      include: ["path"],
    }),
  • See the error message

    Bildschirmfoto 2024-10-22 um 12 20 38

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