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

Error when registering custom component with latest #75

Open
shinyidol opened this issue Nov 24, 2021 · 2 comments
Open

Error when registering custom component with latest #75

shinyidol opened this issue Nov 24, 2021 · 2 comments

Comments

@shinyidol
Copy link

Installed pointed to js file and getting this error

user@MBP mjml % mjml --version
Error when registering custom component :  /opt/homebrew/lib/node_modules/mjml-chart/lib/index.js TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at registerCustomComponent (/opt/homebrew/lib/node_modules/mjml-chart/node_modules/mjml-core/lib/helpers/mjmlconfig.js:84:30)
    at /opt/homebrew/lib/node_modules/mjml-chart/node_modules/mjml-core/lib/helpers/mjmlconfig.js:87:7
    at Array.forEach (<anonymous>)
    at registerCustomComponent (/opt/homebrew/lib/node_modules/mjml-chart/node_modules/mjml-core/lib/helpers/mjmlconfig.js:86:15)
    at /opt/homebrew/lib/node_modules/mjml-chart/node_modules/mjml-core/lib/helpers/mjmlconfig.js:107:9
    at Array.forEach (<anonymous>)
    at handleMjmlConfigComponents (/opt/homebrew/lib/node_modules/mjml-chart/node_modules/mjml-core/lib/helpers/mjmlconfig.js:97:12)
    at handleMjmlConfig (/opt/homebrew/lib/node_modules/mjml-chart/node_modules/mjml-core/lib/helpers/mjmlconfig.js:139:10)
    at Object.<anonymous> (/opt/homebrew/lib/node_modules/mjml-chart/node_modules/mjml-core/lib/index.js:473:27)
mjml-core: 4.10.4
mjml-cli: 4.10.4

mjml-core: 4.10.4
mjml-cli: 4.10.4
mjml-chart: 6.0.1

@FGRibreau
Copy link
Member

cc @btourman ?

@btourman
Copy link
Collaborator

btourman commented Dec 2, 2021

Hi @shinyidol,

To be sure, are you trying to use custom component (mjml-chart) with cli ?
Because, if it's the case, I think mjml cli is not yet ready for this : https://github.com/mjmlio/mjml-component-boilerplate#with-the-cli

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

3 participants