You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing an issue that I need to compile the component before it is sent to registerComponent.
So say I have an entry file that imports the custom component and registers like so:
import { registerDependencies } from 'mjml-validator'
import { registerComponent } from 'mjml-core'
import MjBasicComponent from './components/MjBasicComponent.js';
registerComponent(MjBasicComponent);
registerDependencies({
'mj-column': ['mj-basic-component'],
'mj-basic-component': [],
});
Since import MjBasicComponent from './components/MjBasicComponent.js'; will retrieve the
MjBasicComponent.js uncompiled, it will fail to register and then I get errors like:
createComponent.js:260 Uncaught TypeError: c.isRawElement is not a function
at createComponent.js:260
BTW, my development webpacker.config.js is as follows:
I am facing an issue that I need to compile the component before it is sent to
registerComponent
.So say I have an entry file that imports the custom component and registers like so:
Since
import MjBasicComponent from './components/MjBasicComponent.js';
will retrieve theMjBasicComponent.js uncompiled, it will fail to register and then I get errors like:
BTW, my development webpacker.config.js is as follows:
Any ideas on how to compile
MjBasicComponent
before it is sent to theregisterComponent
function?The text was updated successfully, but these errors were encountered: