Skip to content

Could not resolve "fs" - Shopify Storefront environment #698

Open
@Ahlecss

Description

@Ahlecss

Hi guys !
I'm using Rapier since today, and trying to play with the lib on a Shopify Hydrogen Storefront environment.

I ran my local env, and just put the tag, and I got an error in the console :

X [ERROR] Could not resolve "fs"

    node_modules/opentype.js/dist/opentype.module.js:13591:25:
      13591 │         var fs = require('fs');
            ╵                          ~~~~

  The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

So i'm asking how to solve that ? if you need more infos, I can provide it, thanks for the help !

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