Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: --experimental-local mode fails with: can't use ".." to break out of starting directory #1949

Closed
IgorMinar opened this issue Sep 28, 2022 · 2 comments
Labels
bug Something that isn't working

Comments

@IgorMinar
Copy link
Contributor

What version of Wrangler are you using?

2.1.8

What operating system are you using?

Mac

Describe the Bug

When I init a new project with fetch handler and typescript I get the following error (after fixing the compat date issue #1948):

npx wrangler dev --experimental-local


 ⛅️ wrangler 2.1.8 
-------------------
⎔ Starting an experimental local server...
[NPXI] @miniflare/tre not available locally. Attempting to use npx to install temporarily.
[NPXI] Installing... (npx --prefer-online -y -p @miniflare/tre@latest)
[NPXI] Installed into /Users/iminar/.npm/_npx/760b1d87e1a3d24e/node_modules.
[NPXI] To skip this step in future, run: npm install --save-dev @miniflare/tre@latest
Running the 🦄 Cloudflare Workers Runtime 🦄 natively ⚡️...
workerd/jsg/util.c++:375: error: e = kj/filesystem.c++:315: failed: expected parts.size() > 0 [0 > 0]; can't use ".." to break out of starting directory
stack: 104c2cdab 104c28c83 104c28b17 1028bffd7 102a7efab 102b48307 102b57eaf 102b57d7f 10289c72f 1028a260b 1028a4377 102894da3 102894bfb 104c4bf93 104c4c1f3 104c2600f 104c4a4cb 10288c1a3 10786108b; sentryErrorContext = jsgInternalError
service core:user:workerd-test: Uncaught Error: internal error
✘ [ERROR] local worker: MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.

      at #waitForRuntime
  (/Users/iminar/.npm/_npx/760b1d87e1a3d24e/node_modules/@miniflare/tre/dist/src/index.js:4770:13)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async #init
  (/Users/iminar/.npm/_npx/760b1d87e1a3d24e/node_modules/@miniflare/tre/dist/src/index.js:4680:9)
      at async startLocalWorker
  (/Users/iminar/Development/workerd-test/node_modules/wrangler/wrangler-dist/cli.js:144649:9)
  {
    code: 'ERR_RUNTIME_FAILURE',
    cause: undefined
  }

@IgorMinar IgorMinar added the bug Something that isn't working label Sep 28, 2022
@mrbbot
Copy link
Contributor

mrbbot commented Sep 28, 2022

Hey! This was fixed in #1934. I'd like to get a release out today including this. 👍

@mrbbot mrbbot closed this as completed Sep 28, 2022
@IgorMinar
Copy link
Contributor Author

Thank you!

@IgorMinar IgorMinar changed the title 🐛 BUG: --experimenta-local mode fails with: can't use ".." to break out of starting directory 🐛 BUG: --experimental-local mode fails with: can't use ".." to break out of starting directory Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
None yet
Development

No branches or pull requests

2 participants