Try the new native dependency checker (Help Wanted)
See original GitHub issueIf 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:
- Created 3 years ago
- Reactions:6
- Comments:19 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.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.