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.

[BUG]- Cannot find module './sfdmuRunPluginTask'

See original GitHub issue

Describe the bug

When I run sfdmu:run command in my CI server, started to get this. I believe this is with the latest version as in my local machine I have version 3.7.21 installed and have no issues.

Error: Cannot find module './sfdmuRunPluginTask'
    Require stack:
    - /github/home/.local/share/sfdx/node_modules/sfdmu/lib/addons/engine/sfdm
    u-run/sfdmuRunPluginJob.js
    - /github/home/.local/share/sfdx/node_modules/sfdmu/lib/addons/engine/sfdm
    u-run/sfdmuRunPluginRuntime.js
    - /github/home/.local/share/sfdx/node_modules/sfdmu/lib/addons/engine/addo
    nManager.js
    - /github/home/.local/share/sfdx/node_modules/sfdmu/lib/modules/models/scr
    ipt_models/script.js
    - /github/home/.local/share/sfdx/node_modules/sfdmu/lib/modules/models/ind
    ex.js
    - /github/home/.local/share/sfdx/node_modules/sfdmu/lib/modules/components
    /common_components/common.js
    - /github/home/.local/share/sfdx/node_modules/sfdmu/lib/modules/components
    /common_components/logger.js
    - /github/home/.local/share/sfdx/node_modules/sfdmu/lib/commands/sfdmu/run
    .js
    - /usr/local/lib/sfdx/node_modules/@oclif/config/lib/plugin.js
    - /usr/local/lib/sfdx/node_modules/@oclif/config/lib/config.js
    - /usr/local/lib/sfdx/node_modules/@oclif/config/lib/index.js
    - /usr/local/lib/sfdx/node_modules/@oclif/command/lib/command.js
    - /usr/local/lib/sfdx/node_modules/@oclif/command/lib/index.js
    - /usr/local/lib/sfdx/dist/cli.js
    - /usr/local/lib/sfdx/bin/sfdx.js

To Reproduce

sfdx sfdmu:run

Expected behavior

The plugin should work as expected.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
ozanbotanlscommented, Feb 28, 2021

@hknokh Yes, it is fine now on my CI server.

0reactions
hknokhcommented, Feb 28, 2021

@azlam-abdulsalam @ozanbotanls I guess, I found the problem, as I said the compile directory was containing incorrect cached file with the first capital letter. Can you try to reinstall if it’s solved ? Thx

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug?]: TS 4.9.4 PnP Cannot find module error #5125 - GitHub
Self-service I'd be willing to implement a fix Describe the bug When installing typescript@4.9.4 with yarn@3.3.0 in VSCode, Cannot find module * or...
Read more >
How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >
1020465 – Error: Cannot find module 'express' using node.js ...
Verified this bug with 2.0/2013-10-21.3, and PASS After create nodejs app, log into gear, its log show that, it is working fine. >...
Read more >
Cannot find module 'node-sass' - Visual Studio Feedback
Closed - Not a Bug View resolution. 3 2 1 ... src/global.scss Module build failed (from . ... Error:...
Read more >
Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/module ...
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