Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Ahlecss opened this issue Sep 11, 2024 · 0 comments
Open

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

Ahlecss opened this issue Sep 11, 2024 · 0 comments

Comments

@Ahlecss
Copy link

Ahlecss commented Sep 11, 2024

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 !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant