codesandbox / codesandbox/codesandbox-client
Can't run a sandbox with imported npm package "html-to-json"
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
My Codesandbox: https://codesandbox.io/s/bold-haze-xwxip8?file=/src/index.js
fails to run: "Failed to fetch Object.module.exports [as request]"
The Console error says: "Unable to open 'request.js': File not found (file:///sandbox/node_modules/html-to-json/lib/request.js)."
while the file actually exists in the package: https://github.com/prolificinteractive/node-html-to-json/tree/master/lib
How has this issue affected you? What are you trying to accomplish?
I'm trying to... actually try the "html-to-json" package.
The npm package is: https://www.npmjs.com/package/html-to-json
To Reproduce
Check my codesandbox (see link).
Link to sandbox: bold-haze-xwxip8
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | codesandbox.io |
| Browser | Google Chrome 93 |
| Operating System | macOS Big Sur 11.6.2 |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox and its browser console error, then compare the failing import with the html-to-json package's lib directory, especially lib/request.js. Reproduce the missing-file failure and determine what is needed for the sandbox to run the imported package successfully.
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