-
Notifications
You must be signed in to change notification settings - Fork 11
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
Trouble getting started with this component #7
Comments
Hey Could you post the errors? |
So this is what I am running: From there I create a file test.js in project root containing the code provided for usage. **const mjml2html = require('mjml'); registerComponent(McSection); const template = console.log(mjml2html(template));** Then im running: This throws an error: Error: Cannot find module 'mjml' |
The example is intended to show how you would register the components in an existing (or barebones) programatic setup of mjml. But in order to fix that error you could do:
|
Hey all,
Having trouble figuring out how to get started with this component. I am in need of a bit of guidance on how exactly to get this up and running.
I have been cloning the project, then running yarn, yarn build then attempting to run a test.js file containing the example code through node but I am just receiving errors.
Can someone please provide me with a little guidance on how to get going.
Thanks.
The text was updated successfully, but these errors were encountered: