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.

FATAL: The 'request' argument must be string. Received type undefined

See original GitHub issue

I’m using nuxt with element-ui directly from the nuxt-create added the router-extras module to my nuxt config:

modules: [
		"@nuxtjs/axios",
		"@nuxtjs/pwa",
		"@nuxtjs/router-extras"
		[
			"nuxt-i18n",
			{
				//i18n stuff
			}
		]
	],

When I run yarn dev, I get FATAL The 'request' argument must be string. Received type undefined and ✖ Nuxt Fatal Error. TypeError [ERR_INVALID_ARG_TYPE]: The 'request' argument must be string. Received type undefined

I’ve only done this so far, did I mess up something or it’s a bug?

I’m running nuxt 2.7.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

54reactions
ricardogobbosouzacommented, Jul 15, 2019

@fabricioanciaes Missing a comma

modules: [
  "@nuxtjs/axios",
  "@nuxtjs/pwa",
  "@nuxtjs/router-extras", <--
  [
    "nuxt-i18n",
    {
      //i18n stuff
    }
  ]
],
8reactions
ubershmekelcommented, Nov 18, 2019

This error brought me here from google. Deleting package-lock.json, deleting the node_modules folder, and then npm install fixed it for me. This was during a migration from nuxt 2.8 to 2.10.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve this error TypeError [ERR_INVALID_ARG_TYPE ...
How to solve this error TypeError [ERR_INVALID_ARG_TYPE]: The 'request' argument must be string. Received type undefined using nuxt.js.
Read more >
Node.js v19.3.0 Documentation
If the error is of a different type, or if the error parameter is undefined, the error is propagated back to the caller....
Read more >
the "path" argument must be of type string or an instance of buffer or ...
I'm trying to send an image file (converted into Uint8Array) to the server using post request. How do I read this image file...
Read more >
How to solve this error TypeError [ERR_INVALID_ARG_TYPE]
[Solved]-How to solve this error TypeError [ERR_INVALID_ARG_TYPE]: The 'request' argument must be string. Received type undefined using nuxt.js-nuxt.js.
Read more >
#Nuxt.js ERROR The “path” argument must be of type string ...
i missed config ( e.g see bellow, array in array ). “#Nuxt.js ERROR The “path” argument must be of type string. Received undefined”...
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