udacimak: Render error: CODE: ERR_INVALID_ARG_TYPE
Describe the bug
I am using udacimak 1.4.0 and getting the following error.
2019-05-17T14:49:15.955Z [error]: TYPEERROR [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
CODE: ERR_INVALID_ARG_TYPE
STACK: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.extname (path.js:830:5)
at downloadMediaInHtml (C:\Users\sstih\AppData\Roaming\npm\node_modules\udacimak\lib\commands\utils\downloadMediaInHtml.js:66:37)
at process._tickCallback (internal/process/next_tick.js:68:7)
The error is occurring at the time of rendering the course.
To download I have used: udacimak download nd041
There was no mistake.
To render I used: udacimak render "Fundamentos Web Front-End v2.0.0"
When it arrives in the folder
Fundamentos Web Front-End v2.0.0\Part 02-Module 01-Lesson 02_Lab - Sintaxe de HTML\08. Construindo links.html
the error happens.
Desktop (please complete the following information):
- OS: Windows
- Node version:
v10.15.3 - npm version:
6.4.1 - Udacimak Version:
v1.4.0
Course Information
- Nanodegree or Course name: Fundamentos Web Front-End nd-041
- Version: v2.0.0
- Locale: pt-br
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (9 by maintainers)
Commits related to this issue
- Fix #43 handle undefined file path when download media in HTML — committed to jv-k/udacimak by udacimak 5 years ago
@sstihler @lucianobarauna You can install the latest version to have this issue fixed.
@lucianobarauna Thanks for the details. Please email all the
data.jsonthe Nanodegree instead of just one file.