question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Path resolution in codesandboxer-fs does not work on windows

See original GitHub issue

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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:13

github_iconTop GitHub Comments

4reactions
Novinycommented, Oct 4, 2018

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.

1reaction
CaitlinWebcommented, Apr 16, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found