nexxtway / react-rainbow

๐ŸŒˆ React Rainbow Components. Build your web application in a snap.

Home Page:https://react-rainbow.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package not found on file system, but is built into node error.

Div-100 opened this issue ยท comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

Describe the bug

A clear and concise description of what the bug is.
When using the module with remix.run and hydrogen, certain modules are not found, namely path, stream and fs. It has the following error message -
The package "x" 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.
I do not have any place where I could put platform: 'node'.

Please note that I am using the component with Remix.run and Shopify Hydrogen.

To Reproduce ๐Ÿ•น

Steps to reproduce the behavior:

  1. Import the module
  2. Use it

Expected Behavior ๐Ÿค”

There should not be an error

Current Behavior ๐Ÿ˜ฏ

Error is thrown

Context ๐Ÿ”ฆ

What are you trying to accomplish? How has this issue affected you?
Just trying to use the module. It worked prior to updating remix/server-runtime to 2.2.0 (It was at 1.19.0 before)

Your Environment ๐ŸŒŽ

Desktop (please complete the following information):

  • OS: Windows NT (11)
  • Browser: Unrelated because the app is not starting, Chrome.
  • Runtime: NodeJS v21.1.0