-
Notifications
You must be signed in to change notification settings - Fork 54
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 #28
Comments
Facing the same Issue |
I think this is related to Windows FS :/ Someone did find a workaround but I can't remember what he did in the gulpfile |
After some fast investigation: Changing
On the secound run I get again Edit: Edit 2: |
After another test within a docker-container (with Linux) I'm also facing the problem |
Weird that you have the issue on Linux as it works just fine on OSX |
I did not test it on 'real' Linux, but I run the installation with Maybe a solution is to add also a package-lock.json especially because most people use How to fix this on Windows:
|
Seems like it has been fixed on |
Trying this now, The version of MJML the boilerplate calls is pretty dated now, though, so I'm hoping what it builds still works in current MJML! |
Hi,
I'm new to mjml custom components, and i have an issue trying to install the boilerplate components.
I've cloned and installed successfully the project.
But when I try to run npm start, I get the following errors :
Missing or unreadable custom component : ./lib/MjBasicComponent.js
Missing or unreadable custom component : ./lib/MjImageText.js
Missing or unreadable custom component : ./lib/MjLayout.js
I've then update my .mjmlconfig file since the compiled components files are created inside /lib/component/ not /lib/ directly:
Now when i run npm start again, I get the following errors:
Error when registering custom component : C:[...]\lib\components\MjBasicComponent.js TypeError: Cannot read property 'BodyComponent' of undefined
[18:27:50] Using gulpfile ~[...]\gulpfile.babel.js
[18:27:50] Starting 'watch'...
[18:27:51] 'watch' errored after 179 ms
[18:27:51] Error: Cannot find module 'C:[...]\lib\MjBasicComponent.js'
Require stack:
What looks strange is that the error says it can't find module that should be located in the /lib/component/ folder, not /lib/ directly.
Many thanks in advance for your help.
Cheers,
The text was updated successfully, but these errors were encountered: