Skip to content

error building/running tensorflow-js (tfjs) with rollup v4.22.0 on Linux container #5661

@ryanxcharles

Description

@ryanxcharles

Rollup Version

4.22.0

Operating System (or Browser)

Linux/all browsers

Node Version (if applicable)

20.8.1

Link To Reproduction

https://powvalidator-com.fly.dev/test

Expected Behaviour

tfjs should load with no error.

Actual Behaviour

There are mysterious errors that seem to have nothing to do with rollup, and tfjs does not work. I currently have a demo of the tfjs loading at the URL above - please check the browser console.

Here is a screen shot of the error:

Screenshot 2024-09-19 at 9 13 47 AM

Here is the place in tfjs where it is throwing an error:

Screenshot 2024-09-19 at 9 14 07 AM

The error doesn't look like it has anything to do with rollup, but I have empirically verified that the only variable is when I upgrade from rollup v4.21.3 to v4.22.0, that is when the error occurs. I must run rollup v4.21.3 in production to prevent this error from occuring.

Note that I have not been able to reproduce this error on my macOS machine. The only time the error occurs is when I build and run for production inside a Linux container. I am using vite if that makes any difference. I have tried building/running for production on macOS with no ability to reproduce. Therefore, reproducing is a bit annoying as I can only reproduce the issue inside a container.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions