Skip to content

v1.0.1 - TypeError: can't access property "toFixed", value is undefined #86

Description

@jaysin586

Describe the bug

Image Image

The issue is that when first loading sometimes the variables are undefined or null, and this is expecting it to always be a number.

Reproduction

This has to do with ShadCn. Here you go!

https://stackblitz.com/~/github.com/jaysin586/paneforge-1.0.1-issue

Image

Logs

System Info

System:
    OS: macOS 15.5
    CPU: (20) x64 Intel(R) Core(TM) i9-10910 CPU @ 3.60GHz
    Memory: 6.13 GB / 128.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.17.1 - ~/.volta/tools/image/node/22.17.1/bin/node
    Yarn: 1.22.22 - ~/.volta/bin/yarn
    npm: 10.9.2 - ~/.volta/tools/image/node/22.17.1/bin/npm
    pnpm: 10.6.1 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 138.0.7204.169
    Safari: 18.5
  npmPackages:
    @sveltejs/kit: 2.26.1 => 2.26.1 
    paneforge: 1.0.1 => 1.0.1 
    svelte: 5.37.1 => 5.37.1

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions