codesandbox / codesandbox/codesandbox-client

Codesandbox is trying to load a file that doesn't exist

Open
#6,848 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

How has this issue affected you? What are you trying to accomplish?

Trying to test a live version of videojs-mux-kit using one of Mux Video's IDs will produce a ModuleNotFoundError in codesandbox.
This is because codesandbox is trying to load a module with the name of the ID relative to the index.html file, but such a file doesn't exist.
The error that comes up makes it seem like there is something broken with videojs-mux-kit.

To Reproduce

Embed videojs-mux-kit in an HTML page in codesandbox: https://codesandbox.io/s/vigilant-elbakyan-9dujh9?file=/index.html
Load the preview.
Notice that a ModuleNotFoundError comes up.

ModuleNotFoundError
Could not find module in path: './O1S5zae00UfwhjG73HWAtH1iJA9g9CnpKL009C9026vknY' relative to '/index.html'

Clicking x on that error, the video player functions as expected.

If I create a file that matches the name of the module that codesandbox is trying to load, then there is no ModuleNotFoundError. Example codesandbox for this: https://codesandbox.io/s/hardcore-rui-q6ilgi?file=/index.html

Link to sandbox: link (optional)

https://codesandbox.io/s/vigilant-elbakyan-9dujh9?file=/index.html

Your Environment
Software Name/Version
Сodesandbox
Browser
Operating System

Contributor guide

Open the contributing guide

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

Start with the linked CodeSandbox at index.html and reproduce the ModuleNotFoundError when loading the preview with the videojs-mux-kit example. Compare it with the second sandbox, where a matching file suppresses the error; done means the preview no longer reports a missing module while the video player continues to function.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
devtools
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.