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

Fix Error: Cannot find module ../lib\MjBasicComponent.js #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ElMohMoh
Copy link

Fix to the following error:

`> gulp watch

[15:47:17] 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
[15:47:19] Using gulpfile D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate\gulpfile.babel.js
[15:47:19] Starting 'watch'...
[15:47:19] 'watch' errored after 391 ms
[15:47:19] Error: Cannot find module 'D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate\lib\MjBasicComponent.js'
Require stack:

  • D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate\gulpfile.babel.js
  • D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate\node_modules\gulp\node_modules\gulp-cli\lib\shared\require-or-import.js
  • D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate\node_modules\gulp\node_modules\gulp-cli\lib\versioned^4.0.0\index.js
  • D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate\node_modules\gulp\node_modules\gulp-cli\index.js
  • D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate\node_modules\gulp\bin\gulp.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at forEach (D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate/gulpfile.babel.js:33:27)
    at Array.forEach ()
    at Pumpify. (D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate/gulpfile.babel.js:30:25)
    at Pumpify.emit (events.js:387:35)
    at Pumpify.emit (domain.js:532:15)
    at endReadableNT (D:\dev\projects\assist\workspace\assist\src\main\resources\templates\mail\mjml\mjml-component-boilerplate\node_modules\readable-stream\lib_stream_readable.js:101
    0:12)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! test@1.0.1 start: gulp watch
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the test@1.0.1 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
`

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

Successfully merging this pull request may close these issues.

1 participant