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: "Missing or unreadable custom component" on first build #32

Closed
vtherry opened this issue Jul 16, 2020 · 1 comment
Closed

Error: "Missing or unreadable custom component" on first build #32

vtherry opened this issue Jul 16, 2020 · 1 comment

Comments

@vtherry
Copy link

vtherry commented Jul 16, 2020

Hi,

after cloning the repo, running npm install and gulp build, I am facing the following error :

[16:16:06] Requiring external module @babel/register
Missing or unreadable custom component : ./lib/MjBasicComponent.js
Missing or unreadable custom component : ./lib/MjImageText.js
Missing or unreadable custom component : ./lib/MjLayout.js
[16:16:09] Using gulpfile C:\projects\mjml-components-boilerplate\gulpfile.babel.js
[16:16:09] Starting 'build'...
[16:16:09] 'build' errored after 337 ms
[16:16:09] Error: Cannot find module 'C:\projects\mjml-components-boilerplate\lib\MjBasicComponent.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at forEach (C:\projects\mjml-components-boilerplate/gulpfile.babel.js:33:27)
at Array.forEach ()
at Pumpify. (C:\projects\mjml-components-boilerplate/gulpfile.babel.js:30:25)
at Pumpify.emit (events.js:194:15)
at Pumpify.EventEmitter.emit (domain.js:459:23)
at endReadableNT (C:\projects\mjml-components-boilerplate\node_modules\duplexify\node_modules\readable-stream\lib_stream_readable.js:1010:12)

I found my file structure to be :

  • .\lib\components\MjBasicComponent.js
  • .\lib\components\MjImageText.js
  • .\lib\components\MjLayout.js

I'm on Windows

@vtherry vtherry closed this as completed Jul 16, 2020
@vtherry
Copy link
Author

vtherry commented Jul 16, 2020

Duplicate of #28

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

1 participant