The "path" argument must be of type string. Received undefined.

See original GitHub issue

Hey there,

We’re using Nx in our project, and when attempting to run the command nx g @jscutlery/cypress-angular:setup-ct --project projectName, I get the following output:

The "path" argument must be of type string. Received undefined."

That is the extent of the output on my end with no additional details, so it’s been challenging trying to find a root cause. Has anyone experienced this before and have insight on how to rectify this? Thanks in advance.

Versions:

  • Nx Version: 12.10.0
  • Angular version: 12.2.9
  • Cypress version: 8.5.0 (also attempted with 8.4.1)
  • @jscutlery/cypress-angular version: 0.7.0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kerry-afscommented, Oct 21, 2021
...on running nx run project-e2e:ct it fires up the Cypress instance, but then hangs. The runner is not visible, and the only output (even when passing the --verbose flag) is:

> nx run project-e2e:ct 
NOTE:
You can now remove the use of the '--headless' flag.
If your run depends on a Chrome extension being loaded during 'cypress run', you should explicitly pass the '--headed' flag.

If you are trying to execute 'cypress open', you should pass the '--watch' flag instead.

Alright, I think I may have figured out what the issue is with the above. I found that this occurs once I add Webpack 5 to the project (which my team is using). I’ve filled out a new bug for that issue at #106

0reactions
Foxandxsscommented, Jul 12, 2022

I installed a new workspace with only angular (nx 14.4.2). Brand new, I installed this package and tried to setup it and I got the error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The "path" argument must be of type string. Received ...
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 >
[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path ...
[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined · This story will cover three possible fixes: · 1:...
Read more >
The "path" argument must be of type string. Received ...
Converts JSON schema to MD. Actual Behaviour. The following error is thrown: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of ...
Read more >
The "path" argument must be of type string. Received - YouTube
JavaScript : TypeError [ERR_INVALID_ARG_TYPE]: The "path " argument must be of type string. Received type undefined raised when starting ...
Read more >
typeerror [err_invalid_arg_type]: the "path" argument must ...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting react app.
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