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.

TypeError: Path must be a string. Received undefined

See original GitHub issue

Hello 😃

I just tried out your example from https://github.com/TheBrainFamily/cypress-cucumber-webpack-typescript-example

I executed “npm install” and then tried to run the tests “npm run test” and the result was

Oops...we found an error preparing this test file:

  cypress\integration\WebPack.feature

The error was:

./cypress/integration/WebPack.feature
Module build failed (from ./node_modules/cypress-cucumber-preprocessor/loader.js):
TypeError: Path must be a string. Received undefined
 @ multi ./cypress/integration/WebPack.feature main[0]

This occurred while Cypress was compiling and bundling your test code. This is usually caused by:

- A missing file or dependency
- A syntax error in the file or one of its dependencies

Fix the error in your code and re-run your tests.

Br, bene

Issue Analytics

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

github_iconTop GitHub Comments

6reactions
waxisiencommented, Jul 23, 2019

We have a similar problem with version 1.13.0:

Module build failed (from ./node_modules/cypress-cucumber-preprocessor/loader.js):
TypeError: Cannot read property 'replace' of undefined

Works with 1.12.0 so we stick to that version for now.

1reaction
lgandeckicommented, Aug 9, 2019

I also updated the example. I’m thinking that we should run all the example repos on CI with every new version, to prevent mess-ups like this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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" #144 - zkat/npx
Happy to try to help. The reason people all over www get 'Path must be a string' in Windows is because it it...
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 >
Path must be a string. Received undefined - node-steam-user
Stack Trace: TypeError: Path must be a string. Received undefined at assertPath (path.js:28:11) at Object.join (path.js:489:7) at userData ...
Read more >
Meteor 1.5.2 TypeError: Path must be a string. Received ...
Meteor 1.5.2 TypeError: Path must be a string. Received undefined ... When I do meteor build and deploy to server, I get this...
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