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

Repro/itty-router failed to parse url from object object (fixed) #1

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

ptim
Copy link
Owner

@ptim ptim commented Mar 7, 2022

No description provided.

SyntaxError: The requested module 'itty-router' does not provide an export named 'Router'
…and version bumps, but:

- requests under `miniflare dev` and
- test still fail
```
[mf:err] GET /: TypeError: Failed to parse URL from [object Object]
    at new Request (/Users/ptim/Documents/Projects/New-Atlas/source/miniflare-typescript-esbuild-jest/node_modules/undici/lib/fetch/request.js:83:23)
    at new Request (/Users/ptim/Documents/Projects/New-Atlas/source/miniflare-typescript-esbuild-jest/node_modules/miniflare/node_modules/@miniflare/core/src/standards/http.ts:348:13)
    at EventTarget.dispatchFetch (/Users/ptim/Documents/Projects/New-Atlas/source/miniflare-typescript-esbuild-jest/node_modules/miniflare/node_modules/@miniflare/core/src/index.ts:894:51)
```

Running

```
rm -rf node_modules && npm install && npm test; npm run miniflare --live-reload --debug --no-cache
```
Tests pass, but I still see

> TypeError: Failed to parse URL from [object Object]

```
# whilst crossing my fingers and toes 😝
rm -rf node_modules .mf dist && npm prune && npm install && npm run build && npm test; npm run dev
```
npm install --save-dev @types/jest@27.4.1 ts-jest@27.1.3 @cloudflare/workers-types@3.4.0 jest@27.5.1 jest-environment-miniflare@2.3.0 miniflare@2.3.0 typescript@4.6.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant