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

Fixing the build problem #1

Open
deltork opened this issue Dec 20, 2024 · 1 comment
Open

Fixing the build problem #1

deltork opened this issue Dec 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working needs triage Needs to be triaged

Comments

@deltork
Copy link
Collaborator

deltork commented Dec 20, 2024

Bug description

ng serve works fine but ng build fails because of gradio-client. Any ideas?

How to reproduce the bug

npx ng build

Error messages and logs

> [email protected] build
> ng build

> Building...
√ Building...
Application bundle generation failed. [24.271 seconds]

X [ERROR] Could not resolve "stream"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:1:23:
      1 │ import require$$0 from "stream";
        ╵                        ~~~~~~~~

  The package "stream" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "zlib"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:2:25:
      2 │ import require$$0$2 from "zlib";
        ╵                          ~~~~~~

  The package "zlib" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "fs"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:3:25:
      3 │ import require$$0$1 from "fs";
        ╵                          ~~~~

  The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "path"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:4:25:
      4 │ import require$$1$1 from "path";
        ╵                          ~~~~~~

  The package "path" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "os"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:5:23:
      5 │ import require$$2 from "os";
        ╵                        ~~~~

  The package "os" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "net"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:7:23:
      7 │ import require$$3 from "net";
        ╵                        ~~~~~

  The package "net" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "tls"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:8:23:
      8 │ import require$$4 from "tls";
        ╵                        ~~~~~

  The package "tls" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "crypto"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:9:23:
      9 │ import require$$5 from "crypto";
        ╵                        ~~~~~~~~

  The package "crypto" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "https"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:11:25:
      11 │ import require$$1$2 from "https";
         ╵                          ~~~~~~~

  The package "https" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "http"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:12:25:
      12 │ import require$$2$1 from "http";
         ╵                          ~~~~~~

  The package "http" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


X [ERROR] Could not resolve "url"

    node_modules/@gradio/client/dist/wrapper-CviSselG.js:13:23:
      13 │ import require$$7 from "url";
         ╵                        ~~~~~

  The package "url" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


Environment

Current environment ``` #- EveryVoice Diagnostic information #- EveryVoice version: #- Python version: #- System: ```

More info

No response

@deltork deltork added bug Something isn't working needs triage Needs to be triaged labels Dec 20, 2024
@roedoejet
Copy link
Member

roedoejet commented Dec 21, 2024

Darn - no I haven't come across this before. Looks like it's a more general issue with the gradio client 😢 gradio-app/gradio#7693

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

No branches or pull requests

2 participants