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] module.findSourceMap is not implemented yet! #135

Open
abel3t opened this issue Nov 15, 2024 · 1 comment · May be fixed by cloudflare/workers-sdk#7319
Open

[BUG] module.findSourceMap is not implemented yet! #135

abel3t opened this issue Nov 15, 2024 · 1 comment · May be fixed by cloudflare/workers-sdk#7319
Labels
bug Something isn't working triage

Comments

@abel3t
Copy link

abel3t commented Nov 15, 2024

Describe the bug

When I try dev:worker, I found these errors:
On Terminal: ✘ [ERROR] <Formatting threw (Error: [unenv] module.findSourceMap is not implemented yet!

Browser:

Error: The script will never generate a response.
    at async Object.fetch (file:///{mypath}/node_modules/miniflare/dist/src/workers/core/entry.worker.js:1029:22)

Steps to reproduce

  1. I use Kinde sdk for nextjs in middleware
  2. Setup @opennextjs/cloudflare
  3. Run dev:worker

Expected behavior

On Terminal: ✘ [ERROR] <Formatting threw (Error: [unenv] module.findSourceMap is not implemented yet!

Browser:

Error: The script will never generate a response.
    at async Object.fetch (file:///{mypath}/node_modules/miniflare/dist/src/workers/core/entry.worker.js:1029:22)

@opennextjs/cloudflare version

0.2.1

Node.js version

20.8.1

Wrangler version

3.78.10

next info output

System:
    OS: macOS 15.0.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 712.38 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.8.1 - ~/.nvm/versions/node/v20.8.1/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.1.0 - ~/.nvm/versions/node/v20.8.1/bin/npm
    pnpm: 8.6.10 - ~/Library/pnpm/pnpm
    bun: 1.0.30 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 131.1.73.89
    Chrome: 130.0.6723.117
    Safari: 18.0.1

Additional context

No response

@abel3t abel3t added bug Something isn't working triage labels Nov 15, 2024
@vicb
Copy link
Contributor

vicb commented Nov 21, 2024

I use Kinde sdk for nextjs in middleware

What is your setup - this is not enough information to reproduce.
Also note that middleware is not yet supported on the main branch - middleware support is being implemented in the experimental branch.

Error: [unenv] module.findSourceMap is not implemented yet!

findSourceMap is not implemented as source paths (and map paths) do not make sense for workers as we don't have access to the file system. unenv should probably return undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants