-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Could not create Open in CodeSandbox Error: Trying to access a filepath outside our scope #481
Comments
I think that this is happening because of this import: import '../../../node_modules/@mgx/tools-component-library/tools-component-library.min.css'; Try to call your module as an relative path instead of absolute import from |
I've removed that import for the code, but the problem still occures. What I did notice is that the error goes away when I remove the following lines: import { Person } from "../../docs/content/person";
import { persons } from "../../docs/content/persons"; Side note: the persons file also imports the person file. So the issue must be there. |
Same error as above and i'm not importing anthing strange. the only thing im importing is |
Docz is currently broken on Windows due to this bug in codesandboxer: codesandbox/codesandboxer#33. For some reason the errors before wouldn't prevent the app from working but now Docz won't build on Windows at all. Current workaround is to disable codesandbox with this option in |
same error here |
Just a note from the codesanboxer docs around some of these errors (which can be found here):
Basically, there's a safety measure in codesandboxer which means if you are in one package, you cannot import source files from another package within a mono-repo (instead it expects these to be absolute imports). Some number of these errors look like this problem, not the struggle with windows. I created a new issue around this error message to that project so this isn't as painful: codesandbox/codesandboxer#49 |
Bug Report
Describe the bug
We're using an external model and array of instances of this model in our examples. But we get an error when doing so. Using version 0.12.5, the code worked. But it no longer does on 0.12.13.
To Reproduce
Environment
Additional context/Screenshots
I've attached a screenshot with our file structure.

The text was updated successfully, but these errors were encountered: