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 an error that happens without this #6

Merged
merged 1 commit into from
Aug 7, 2017
Merged

Fix an error that happens without this #6

merged 1 commit into from
Aug 7, 2017

Conversation

favna
Copy link
Contributor

@favna favna commented Aug 7, 2017

When using Path.resolve(./src/Modules) it will return Error: ENOENT: no such file or directory, scandir, or in other words, it won't be able to find the directory. This at least counts for Windows systems however path.join is a method that works regardless of the system and generally highly recommended whatsoever. More on path.join here. and on the __dirname variable here

When using Path.resolve(`./src/Modules`) it will return `Error: ENOENT: no such file or directory, scandir`, or in other words, it won't be able to find the directory. This at least counts for Windows systems however `path.join` is a method that works regardless of the system and generally highly recommended whatsoever. More on [path.join here](https://nodejs.org/api/path.html#path_path_join_paths). and on the [__dirname variable here](https://nodejs.org/docs/latest/api/modules.html#modules_dirname)
@LucasLeandro1204
Copy link
Owner

@favna nice tip, thanks.

@LucasLeandro1204 LucasLeandro1204 merged commit f32446f into LucasLeandro1204:master Aug 7, 2017
@favna favna deleted the patch-1 branch August 7, 2017 21:44
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.

2 participants