wladpaiva / mjml-campaignmonitor Goto Github PK
View Code? Open in Web Editor NEWCampaign Monitor compatible MJML v4 components
License: MIT License
Campaign Monitor compatible MJML v4 components
License: MIT License
I may be doing something wrong but I can't seem to register the components. In reading the documents I think this is the correct method for registering the component after install but I get the follow errors.
{
"packages": [
"mjml-campaignmonitor/lib/index.js"
]
}
Throws an error
Error when registering custom component : ......./node_modules/mjml-campaignmonitor/src/index.js ......./node_modules/mjml-campaignmonitor/src/index.js:1
(function (exports, require, module, __filename, __dirname) { export Image from './Image'
^^^^^^
SyntaxError: Unexpected token export
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:656:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
Getting No matching version found for mjml-validator@^4.3.1 when trying to install.
Should this be 4.3.0
It seems like mj-wrapper should be a valid child of cm-layout, but it doesn't work. I get the following error...
{
line: 11,
message: 'mj-wrapper cannot be used inside cm-layout, only inside: mj-body, mj-attributes',
tagName: 'mj-wrapper',
formattedMessage: 'Line 11 of /Users/keironlowe/Desktop/***/src/includes/news.mjml, included at line 28 of file /Users/keironlowe/Desktop/***/src/index.mjml (mj-wrapper) โ mj-wrapper cannot be used inside cm-layout, only inside: mj-body, mj-attributes'
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.