Fix Error: Cannot find module ../lib\MjBasicComponent.js#47
Open
ElMohMoh wants to merge 1 commit intomjmlio:masterfrom
Open
Fix Error: Cannot find module ../lib\MjBasicComponent.js#47ElMohMoh wants to merge 1 commit intomjmlio:masterfrom
ElMohMoh wants to merge 1 commit intomjmlio:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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 watchnpm 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:
`