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

NextJs Supabase auth , fab build error #329

Open
Rashmi-278 opened this issue Jan 5, 2021 · 0 comments
Open

NextJs Supabase auth , fab build error #329

Rashmi-278 opened this issue Jan 5, 2021 · 0 comments

Comments

@Rashmi-278
Copy link

Rashmi-278 commented Jan 5, 2021

Attempting to deploy https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db to cloudflare workers using fab

npm run build success
npx fab build fails

Build failed.

null
./.fab/.cache/generated-nextjs-renderers.38147c8.js
Module not found: Error: Can't resolve 'http2' in '/home/torch/Desktop/auth tests/realtime-chat-app/.fab/.cache'
resolve 'http2' in '/home/torch/Desktop/auth tests/realtime-chat-app/.fab/.cache'
  Parsed request is a module
  using description file: /home/torch/Desktop/auth tests/realtime-chat-app/package.json (relative path: ./.fab/.cache)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /home/torch/Desktop/auth tests/realtime-chat-app/.fab/.cache/node_modules doesn't exist or is not a directory
      /home/torch/Desktop/auth tests/realtime-chat-app/.fab/node_modules doesn't exist or is not a directory
      /home/torch/Desktop/auth tests/node_modules doesn't exist or is not a directory
      /home/torch/Desktop/node_modules doesn't exist or is not a directory
      /home/torch/node_modules doesn't exist or is not a directory
      /home/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
      looking for modules in /home/torch/Desktop/auth tests/realtime-chat-app/node_modules
        using description file: /home/torch/Desktop/auth tests/realtime-chat-app/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
          using description file: /home/torch/Desktop/auth tests/realtime-chat-app/package.json (relative path: ./node_modules/http2)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2 doesn't exist
            .wasm
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2.wasm doesn't exist
            .mjs
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2.mjs doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2.js doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2.json doesn't exist
            as directory
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2 doesn't exist
[/home/torch/Desktop/auth tests/realtime-chat-app/.fab/.cache/node_modules]
[/home/torch/Desktop/auth tests/realtime-chat-app/.fab/node_modules]
[/home/torch/Desktop/auth tests/node_modules]
[/home/torch/Desktop/node_modules]
[/home/torch/node_modules]
[/home/node_modules]
[/node_modules]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2.wasm]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2.mjs]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2.js]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/http2.json]
 @ ./.fab/.cache/generated-nextjs-renderers.38147c8.js 13702:21-37
 @ ./.fab/.cache/entry-point.js,./.fab/.cache/generated-nextjs-renderers.38147c8.js
Module not found: Error: Can't resolve 'tls' in '/home/torch/Desktop/auth tests/realtime-chat-app/.fab/.cache'
resolve 'tls' in '/home/torch/Desktop/auth tests/realtime-chat-app/.fab/.cache'
  Parsed request is a module
  using description file: /home/torch/Desktop/auth tests/realtime-chat-app/package.json (relative path: ./.fab/.cache)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /home/torch/Desktop/auth tests/realtime-chat-app/.fab/.cache/node_modules doesn't exist or is not a directory
      /home/torch/Desktop/auth tests/realtime-chat-app/.fab/node_modules doesn't exist or is not a directory
      /home/torch/Desktop/auth tests/node_modules doesn't exist or is not a directory
      /home/torch/Desktop/node_modules doesn't exist or is not a directory
      /home/torch/node_modules doesn't exist or is not a directory
      /home/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
      looking for modules in /home/torch/Desktop/auth tests/realtime-chat-app/node_modules
        using description file: /home/torch/Desktop/auth tests/realtime-chat-app/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
          using description file: /home/torch/Desktop/auth tests/realtime-chat-app/package.json (relative path: ./node_modules/tls)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls doesn't exist
            .wasm
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls.wasm doesn't exist
            .mjs
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls.mjs doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls.js doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls.json doesn't exist
            as directory
              /home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls doesn't exist
[/home/torch/Desktop/auth tests/realtime-chat-app/.fab/.cache/node_modules]
[/home/torch/Desktop/auth tests/realtime-chat-app/.fab/node_modules]
[/home/torch/Desktop/auth tests/node_modules]
[/home/torch/Desktop/node_modules]
[/home/torch/node_modules]
[/home/node_modules]
[/node_modules]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls.wasm]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls.mjs]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls.js]
[/home/torch/Desktop/auth tests/realtime-chat-app/node_modules/tls.json]
 @ ./.fab/.cache/generated-nextjs-renderers.38147c8.js 35429:21-35
 @ ./.fab/.cache/entry-point.js
    TypeError: Cannot read property 'message' of undefined
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

No branches or pull requests

1 participant