You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running svelte-kit dev, vite tries to read .. and fails because it does not have permission to access it (the sveltekit bug tracker suggested I open a ticket here).
I'm running node inside a macOS sandbox, which is configured something like this:
Commands can then be run like this: /usr/bin/sandbox-exec -f <path to profile> npx ....
Effectively, this means that /Users/nicolas/ (which is .. from my project checkout in /Users/nicolas/my-project) is not accessible by node. To make sure that node functions, I'm setting a local config cache:
When running svelte-kit dev, vite fails because I cannot read the parent directory:
[ERROR] Cannot read directory "..": operation not permitted
1:05:01 PM [vite] error while updating dependencies:
Error: Build failed with 1 error:
error: Cannot read directory "..": operation not permitted
at failureErrorWithLog (/Users/nicolas/my-project/node_modules/esbuild/lib/main.js:1600:15
)
at /Users/nicolas/my-project/node_modules/esbuild/lib/main.js:1246:28
at runOnEndCallbacks (/Users/nicolas/my-project/node_modules/esbuild/lib/main.js:1031:63)
at buildResponseToResult (/Users/nicolas/my-project/node_modules/esbuild/lib/main.js:1244:
7)
at /Users/nicolas/my-project/node_modules/esbuild/lib/main.js:1353:14
at /Users/nicolas/my-project/node_modules/esbuild/lib/main.js:663:9
at handleIncomingPacket (/Users/nicolas/my-project/node_modules/esbuild/lib/main.js:760:9)
at Socket.readFromStdout (/Users/nicolas/my-project/node_modules/esbuild/lib/main.js:629:7
)
at Socket.emit (node:events:520:28)
at addChunk (node:internal/streams/readable:315:12)
Repro:
Create new svelte-kit project
Create profile.sb as above (replace username and project name)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
When running
svelte-kit dev
,vite
tries to read..
and fails because it does not have permission to access it (the sveltekit bug tracker suggested I open a ticket here).I'm running node inside a macOS sandbox, which is configured something like this:
Commands can then be run like this:
/usr/bin/sandbox-exec -f <path to profile> npx ...
.Effectively, this means that
/Users/nicolas/
(which is..
from my project checkout in/Users/nicolas/my-project
) is not accessible by node. To make sure that node functions, I'm setting a local config cache:When running
svelte-kit dev
,vite
fails because I cannot read the parent directory:Repro:
export npm_config_cache=/Users/$USER/<project>/.npm
/usr/bin/sandbox-exec -f profile.sb npm run dev
Reproduction
See description
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: