Skip to content

Can't walk dependency graph: cannot find module #240

@olafgorter

Description

@olafgorter

I want to make use of the cypress markdown preprocessor.
After installing it with npm:
npm i -D cypress-markdown-preprocessor

and configured the plugin:
/ cypress.config.js
const { defineConfig } = require('cypress')
const mdPreprocessor = require('cypress-markdown-preprocessor')

module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
on('file:preprocessor', mdPreprocessor)
return config
},
// use Markdown file from folder "docs" as tests
specPattern: 'docs/**/*.md',
},
})

I created a first test file, which I ran in Cypress. I got an error:
Can't walk dependency graph: Cannot find module in
[email protected]'

That is strange because I have this folder in my node_modules:
node_modules@bahmutov\cypress-fiddle\src\index.js

So, because there was only one place where I had to fill in a require, at the mdPreprocessor cypress config, I don't know what to do.

Olaf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions