AlexTorresDev / custom-electron-titlebar

Custom electon title bar inpire on VS Code title bar
MIT License
868 stars 149 forks source link

ERR_PACKAGE_PATH_NOT_EXPORTED on build #238

Closed Christilut closed 1 year ago

Christilut commented 1 year ago

Problem Description

I'm getting the following error after upgrading to 4.2.7

An unhandled rejection has occurred inside Forge:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/common/platform' is not defined by "exports" in /Users/chris/workspace/project/node_modules/custom-electron-titlebar/package.json
at new NodeError (node:internal/errors:405:5)
    at exportsNotFound (node:internal/modules/esm/resolve:259:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:589:9)
    at resolveExports (node:internal/modules/cjs/loader:547:36)
    at Module._findPath (node:internal/modules/cjs/loader:621:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1034:27)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/Users/chris/workspace/project/forge.config.js:7:22)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)

I'm on electron 25.8.2 and electron-forge 6.4.2.