max-mapper / max-mapper/websocket-stream

no such file or directory, open 'stream'

Open
#128 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
667
Forks
110
PR merge metrics
No merged PRs in 30d

Description

Initially reported in https://github.com/calvinmetcalf/rollup-plugin-node-builtins/issues/31#issuecomment-312427554, the following error is really weird:

node_modules/websocket-stream/stream.js🚨   Could not load stream (imported by /home/michael-heuberger/code/videomail-client/node_modules/websocket-stream/stream.js): ENOENT: no such file or directory, open 'stream'

looks like the es6 bundler rollup is trying to find the stream.js file but can't find it. But it does exist in your repo. Btw I have aliased it like that readable-stream:'stream'

Not sure if websocket-stream can be bundled at all with rollup?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure involving websocket-stream/stream.js with the reported Rollup setup and the readable-stream:'stream' alias. Inspect how the stream import is resolved and determine whether websocket-stream can bundle successfully; done means the reported ENOENT is fixed or the incompatibility is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, rollup
Domain
build-system, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.