Any ideas what would be causing this?
$ codesandbox .
CodeSandbox CLI
The official CLI for uploading projects to CodeSandbox
> Deploying . to CodeSandbox
> [error] Could not find package.json
$ ls package.json
package.json
what is the output of :wolf:
ls -la package.json
$ ls -la package.json
-rw-r--r-- 1 ryan 1049089 1597 Apr 3 12:06 package.json
You are on windows OS?
Yes, unfortunately.
Interesting, this could be related to Windows. Which version of codesandbox-cli do you have installed?
1.2.7
same here, windows, using this Nuxt template https://github.com/pi0/codesandbox-nuxt
And also, in ubuntu's bash on windows
deploy Nuxt had same problem .

same issue on win 8.1



any help?
Same error..anyone have any suggestions?
I am seeing this as well on Windows 7 - [email protected]
looks like we're missing path.resolve somewhere
@gt3 Can you please provide a link to the project you're trying to upload?
@lbogdan we should be able to reproduce this on windows by creating a new app via create-react-app, then running codesandbox cli.
By the way, this guy blows my stack:
function createDirectoryRecursively(path, directories) {
if (directories[path]) {
return directories[path];
}
var parentDir = path_1.dirname(path);
// This means root, so create it
if (parentDir === ".") {
directories[path] = generateSandboxDirectory(path, undefined);
return;
}
if (!directories[parentDir]) {
createDirectoryRecursively(parentDir, directories);
}
directories[path] = generateSandboxDirectory(path_1.basename(path), directories[parentDir].shortid);
}
Windows does not have "." as root, and so runs forever. I'll try to dive in and submit a fix.
This turned out to be a relatively easy fix. Please review PR - codesandbox-app/codesandbox-importers#8
Most helpful comment
This turned out to be a relatively easy fix. Please review PR - codesandbox-app/codesandbox-importers#8