This repository was archived by the owner on Jul 1, 2024. It is now read-only.
Update arguments.js#1
Open
hemersonvarela wants to merge 1 commit intokuhnza:masterfrom
hemersonvarela:patch-1
Open
Update arguments.js#1hemersonvarela wants to merge 1 commit intokuhnza:masterfrom hemersonvarela:patch-1
hemersonvarela wants to merge 1 commit intokuhnza:masterfrom
hemersonvarela:patch-1
Conversation
I have tried to run this example, but I got the following error message:
{
"message": "Command failed: \nmodule.js:340\n throw err;\n ^\nError: Cannot find module '../lib/index'\n at Function.Module._resolveFilename (module.js:338:15)\n at Function.Module._load (module.js:280:25)\n at Module.require (module.js:362:17)\n at require (module.js:378:17)\n at Object. (/home/node/tmp/2ebf54f9-e74a-40c8-8a22-f31aca2c9e70:9:15)\n at Module._compile (module.js:449:26)\n at Object.Module._extensions..js (module.js:467:10)\n at Module.load (module.js:356:32)\n at Function.Module._load (module.js:312:12)\n at Module.runMain (module.js:492:10)\n"
}
After changing required module by 'tubesio'. It works well.
Owner
|
Thanks Hemerson. The relative path is actually by design so that the examples can be run straight from the examples folder. Rather than change the require statement I'd suggest we simply add a comment that makes it clear that you need to change that in your own deployed code. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
I have tried to run this example, but I got the following error message:
{
"message": "Command failed: \nmodule.js:340\n throw err;\n ^\nError: Cannot find module '../lib/index'\n at Function.Module._resolveFilename (module.js:338:15)\n at Function.Module._load (module.js:280:25)\n at Module.require (module.js:362:17)\n at require (module.js:378:17)\n at Object. (/home/node/tmp/2ebf54f9-e74a-40c8-8a22-f31aca2c9e70:9:15)\n at Module._compile (module.js:449:26)\n at Object.Module._extensions..js (module.js:467:10)\n at Module.load (module.js:356:32)\n at Function.Module._load (module.js:312:12)\n at Module.runMain (module.js:492:10)\n"
}
After changing required module by 'tubesio'. It works well.