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

Running build #162

Open
Simon-U opened this issue Apr 3, 2024 · 0 comments
Open

Running build #162

Simon-U opened this issue Apr 3, 2024 · 0 comments

Comments

@Simon-U
Copy link

Simon-U commented Apr 3, 2024

Hello,

I use your templated to build Dash components which works really well.

With my current component I encounter an issue and I cannot make sense out of the error log.
When running npm run build it finishes the process but in-between I get the following message:

Description for ToolBoxGrid.resizeHandles is missing!
TypeError: Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at parseJSX (/home/simon/.pyenv/versions/3.11.3/envs/dashDrag/lib/python3.11/site-packages/dash/extract-meta.js:149:12)
    at gather (/home/simon/.pyenv/versions/3.11.3/envs/dashDrag/lib/python3.11/site-packages/dash/extract-meta.js:167:41)
    at /home/simon/.pyenv/versions/3.11.3/envs/dashDrag/lib/python3.11/site-packages/dash/extract-meta.js:188:11
    at Array.forEach (<anonymous>)
    at /home/simon/.pyenv/versions/3.11.3/envs/dashDrag/lib/python3.11/site-packages/dash/extract-meta.js:183:34
    at Array.forEach (<anonymous>)
    at gatherComponents (/home/simon/.pyenv/versions/3.11.3/envs/dashDrag/lib/python3.11/site-packages/dash/extract-meta.js:181:11)
    at Object.<anonymous> (/home/simon/.pyenv/versions/3.11.3/envs/dashDrag/lib/python3.11/site-packages/dash/extract-meta.js:758:18)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32)
    at Module._load (node:internal/modules/cjs/loader:972:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47

Does this maybe come from these prop types?

    resizeHandles: PropTypes.arrayOf(
        PropTypes.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])
    ),

    /**
     * Dash-assigned callback that should be called to report property changes
     * to Dash, to make them available for callbacks.
     */
    setProps: PropTypes.func,

Thank you for your help

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