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.

Uncaught Error: Cannot find module 'axios'

See original GitHub issue
Describe the issue / bug.

# where i run npm run dev, shows “Uncaught Error: Cannot find module ‘axios’” in console, and the main window shows nothing.

Uncaught Error: Cannot find module 'axios' at Module._resolveFilename (module.js:543) at Function.Module._resolveFilename (/Volumes/Sites/PDD/pddmigrateclient/pddmigrateclient/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35) at Function.Module._load (module.js:473) at Module.require (module.js:586) at require (internal/module.js:11) at eval (webpack-internal:///axios:1) at Object.axios (renderer.js:1576) at __webpack_require__ (renderer.js:728) at fn (renderer.js:102) at eval (webpack-internal:///./src/renderer/main.js:3)

If visual, provide a screenshot.

#

Tell me about your development environment.
  • Node version: 12.11.1
  • NPM version:6.11.3
  • vue-cli version: (if necessary) 3.8.4
  • Operating System: MacOS Catalina

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:14

github_iconTop GitHub Comments

36reactions
ChuckWecommented, May 22, 2020

webpack.renderer.config.js let whiteListedModules = ['vue','axios','vue-electron', 'vue-router', 'vuex', 'vuex-electron','element-ui'] like this…

24reactions
esdrasdemoraiscommented, Jan 7, 2020

Yarn

$ yarn add axios

npm

$ npm install axios --save

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'axios' - node.js - Stack Overflow
I have received an error message "Uncaught Error Error: Cannot find module 'axios'" then I tried to install axios package by running the ......
Read more >
Cannot find module 'axios' Error in TypeScript | bobbyhadz
To solve the "Cannot find module axios or its corresponding type declarations" error, install the module by running the command npm install axios...
Read more >
[ts] cannot find module 'axios'. · Issue #1221 - GitHub
When I create a .ts file and try to import axios it complains that it cannot find the module 'axios'. If I create...
Read more >
Why do I receive "cannot find module axios" When I run a ...
I am running the following example code using NodeJS. I receive an error saying "cannot find module axios"? " Thanks!!
Read more >
cannot find module 'axios' or its corresponding type ...
run this in your project directory npm install axios --save.
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