Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
1 task done
Div-100 opened this issue Nov 14, 2023 · 0 comments
Open
1 task done

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

Div-100 opened this issue Nov 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Div-100
Copy link

Div-100 commented Nov 14, 2023

  • 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
@Div-100 Div-100 added the bug Something isn't working label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant