Require doesn't resolve from the expected path.
See original GitHub issueIn a file inside cypress/support/step_definitions
I require a file ./bla
. When I view the network tab of the devtools I see this error:
(function () {
Cypress.action("spec:script:error", {
type: "BUNDLE_ERROR",
error: "Error: Cannot find module './bla' from '<project-path>/cypress/integration'{newline}"
})
}())
I expect it to resolve from cypress/support/step_definitions
and not cypress/integration
Issue Analytics
- State:
- Created 5 years ago
- Comments:10
Top Results From Across the Web
NodeJS path.resolve doesn't work as expected - Stack Overflow
resolve ("D:") , it returns my Node.js project's root directory, which is D:\Docs\NodeJS\DBTest in my case, and it seems strange to me. But ......
Read more >Issues - GitHub
require.resolve() acts like require() , but returns the resolved path, instead of the actual module. The paths argument is supposed to be ...
Read more >Auto-mapping doesn't work as expected in an Office 365 ...
Describes an issue in which a mailbox can't map automatically in Office 365 hybrid environment. Provides a resolution.
Read more >Connect a wireless game controller to your Apple device
Connect a wireless Xbox, PlayStation, or other Bluetooth game controller to your iPhone, iPad, Apple TV, or Mac.
Read more >Mental Phenomena Don't Map Into the Brain as Expected
The Brain Doesn't Think the Way You Think It Does ... those categories and the neural networks that support them don't work as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m currently under this issue too. I’m working with the v 1.0.0. I can’t figure it out why this is happening
This is possibly fixed in 1.2.0 https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/blob/master/CHANGELOG.md#120---2018-07-13