Path resolution in codesandboxer-fs does not work on windows
See original GitHub issueIssue Description
I’m using Docz to do documentation and I have this problem: Is it really a bug?
Could not create Open in CodeSandbox { Error: Cannot find module 'D:\Projects\docz\examples\basic\Button' from 'D:\Projects\docz\node_modules\codesandboxer-fs\src'
at Function.module.exports [as sync] (D:\Projects\docz\node_modules\resolve\lib\sync.js:43:15)
at loadRelativeFile (D:\Projects\docz\node_modules\codesandboxer-fs\src\loadRelativeFile.js:55:30)
at Promise.all.internalImports.map.filePath (D:\Projects\docz\node_modules\codesandboxer-fs\src\loadFiles.js:32:14)
at Array.map (<anonymous>)
at loadFiles (D:\Projects\docz\node_modules\codesandboxer-fs\src\loadFiles.js:31:21)
at Object.assembleFiles (D:\Projects\docz\node_modules\codesandboxer-fs\src\assembleFiles.js:85:21)
at <anonymous> code: 'MODULE_NOT_FOUND' }
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:13
Top Results From Across the Web
FAQs - CodeSandbox
Which languages and frameworks are supported? CodeSandbox works with JavaScript (including TypeScript) and has front-end and full-stack support.
Read more >nodejs-path-module - CodeSandbox
This Sandbox is running an experiment. You have to fork it before you can make any changes. Fork. VS Code's tsserver was deleted...
Read more >musinsa - CodeSandbox
This sandbox is in sync with master on GitHub. You have to fork to make changes. Fork. Files. gulpconf. src .gitignore. README.md. gulpfile.js....
Read more >Setup your first sandbox - CodeSandbox
Sandboxes are a great way to get working on your idea with zero startup costs. ... This list is not comprehensive of all...
Read more >naughty-pascal-y63ohp - CodeSandbox
Sign up for free to save your work0/3 Sandboxes used - Anonymous. CodeSandbox. naughty-pascal-y63ohp. 0. Embed Fork Create Sandbox Sign in. Sandbox Info....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We are using a custom pathResolution function! I have finally accepted the obvious truth that this was a bad idea, so will be looking to replace it in the future.
Currently
codesandboxer-fs
fundamentally doesn’t work on windows.@Noviny I don’t really have a demo of my fix. I could possibly put one together or at least test the PR when I have a chance. Hopefully within the next week or so.