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.

Path must be a string. Received undefined

See original GitHub issue

I got the following error when trying to run the suggested code on grunt.

Running "babel:dist" (babel) task
Warning: Path must be a string. Received undefined Use --force to continue.

Any help?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

12reactions
dfenstermakercommented, Aug 25, 2016

For what its worth I was having this issue and updated all packages according to this thread https://github.com/webpack/webpack/issues/2463 and it ended up being the html-webpack-plugin not having a filename property. Hope that helps someone!

10reactions
erikcorecommented, Nov 6, 2015

The problem for me ended up being an incorrect path to my source file. The error message was just super ambiguous.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Path must be a string. Received undefined" #144 - zkat/npx
npm v5.51 node v8.9.0 ... it seems that anytime I run an npx command it shows "Path must be a string. Received undefined"...
Read more >
Jest TypeError: Path must be a string. Received undefined
I solved this issue using: npm uninstall -g jest; npm install -g jest; npm cache clean; npm install.
Read more >
path must be a string. received undefined when building a ...
I'm attempting to build a xamarin.ios project on a hosted agent. The project builds fine on a private agent we use, but in...
Read more >
Error: Path must be a string. Received undefined - Forge
In my case const { WebClient } = require("@slack/web-api"); was causing the problem. Changing it to import declaration didn't fix the issue ...
Read more >
the "path" argument must be of type string or an instance of url ...
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 >

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