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.

Try the new native dependency checker (Help Wanted)

See original GitHub issue

If your app uses native dependencies, chances are you have had to configure the externals array in vue.config.js. Included in v2.0.0-rc.3 is a new way of checking for native deps that should allow you to completely remove your externals array. It is currently disabled by default, but I would like to replace the old version by v2.0.0.

To test it, simply upgrade to v2.0.0-rc.3 and update your vue.config.js like so:

module.exports = {
  pluginOptions: {
    electronBuilder: {
      nodeIntegration: true,
-       externals: ['native-dep', ...]
+       experimentalNativeDepCheck: true
    }
  }
}

Now, run electron:serve and it should automatically detect native deps and compilation should succeed. If this works for you, please 👍 this issue. If not, please leave a comment with the native deps you are using.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
nklaymancommented, Jul 8, 2020

@romansp the old checker reports express as an external, while the new one doesn’t. Even though express doesn’t have any native code, it seems people recommend adding it as an external regardless, so you may want to add it to your externals array.

0reactions
nklaymancommented, Jan 4, 2022

Closing as the new native dep checker is enabled by default in v3 alpha. While there are some issues with it, it’s still much better than the old one and I don’t know of any ways to improve it as of now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OWASP Dependency Check - YouTube
... discuss using OWASP Dependency Check to analyze our library dependencies for know vulnerabilities to e... ... Cloud- Native Development.
Read more >
Dependency Check gets stuck when used #3408 - GitHub
Hello, been trying to use dependency check on one of my projects, but when it gets to one of the modules and the...
Read more >
create-react-app dependency version issues with React 18
Check here for the Github issue. Here is a temporary workaround: Install cra-template to a separate folder (other than your new project ...
Read more >
Dependency Management | React Native Developer Tools
This guide will fundamentally change the way you maintain your React Native applications and libraries. It all centers on one tool -- the...
Read more >
Dependency Scanning - GitLab Docs
gitlab-ci.yml file, the test stage is required. To run dependency scanning jobs, by default, you need GitLab Runner with the docker ...
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