Forum Discussion

Denizbaby's avatar
6 years ago

Error: Cannot find module 'object.defaults'

Hi All,

I am getting te below error while executing

li export-studio-plugin.


module.js:478
throw err;
^

Error: Cannot find module 'object.defaults'
at Function.Module._resolveFilename (module.js:476:15)
at Function.Module._load (module.js:424:25)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/root/.npm-global/lib/node_modules/gulp/node_modules/undertaker/lib/tree.js:3:16)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)

 

Thanks in advance,

Dbaby

  • Denizbaby,

    Try to Upgrade your Lithium SDK version using command

    npm install lithium-sdk@1.4.1

    After that runinstall gulp again,

    npm install gulp -g

    Then restart your computer. and create new project for the same project again.

    Let me know what you have found.

    • Denizbaby's avatar
      Denizbaby
      Guide

      Hi Parshant,

      Thanks for the reply. SDK version is  1.4.1. Reinstalled  the  SDK.  But the same issue exists.

      Thanks,

        DVB