question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Render error: CODE: ERR_INVALID_ARG_TYPE

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
udacimakcommented, Jul 19, 2019

@sstihler @lucianobarauna You can install the latest version to have this issue fixed.

1reaction
udacimakcommented, Jul 18, 2019

@lucianobarauna Thanks for the details. Please email all the data.json the Nanodegree instead of just one file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The "path" argument must be of type string ... - Stack Overflow
I'm working on a project in React and ran into a problem that has me stumped. Whenever I run yarn start I get...
Read more >
TypeError [ERR_INVALID_ARG_TYPE] · Issue #8499 - GitHub
Started getting TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined in multiple CRA ...
Read more >
[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path ...
Have you run into the error “TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined”? In this story I'll go...
Read more >
npm err! code err_invalid_arg_type npm err! the "path ...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined. I have no idea why this is happening. Favicon for...
Read more >
Error handling - Express.js
Error Handling. Error Handling refers to how Express catches and processes errors that occur both synchronously and asynchronously. Express comes with a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found