electron-userland / electron-userland/electron-webpack

Source-map-support module not found

Open
#347 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm having an issue building my app. With Apple's new changes I had to remove all node_modules from the extraResources config.

However, now that I removed it, I'm getting the error when trying to run the app "cannot find module 'source-map-support'". Problem is, that I keep getting an error with each new item I add to extraResources config. I'm now down to electron-updater.

Here is my config
```
"build": {
"extraResources": [
"./node_modules/source-map-support",
"./node_modules/source-map",
"./node_modules/buffer-from",
"./node_modules/electron-updater"
],
"files": [
"!node_modules"
],
"asar": true,
"mac": {
"target": [
"dmg",
"zip"
],
"hardenedRuntime": true,
"entitlements": "./build/entitlements.mac.plist",
"entitlementsInherit": "./build/entitlements.mac.plist",
"gatekeeperAssess": false,
"cscLink": "build/DevApp_cert.p12",
"cscInstallerLink": "build/devInstaller_cert.p12"
}
,
"afterSign": "./build/afterSignHook.js",
"dmg": {
"sign": false
}
},
```

I was thinking, that since source-map-support is being used by electron-webpack, you might have an idea of what I can do. I imagine there's a better way than this?

Any help would be appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.