Skip to content

TypeError: Cannot read properties of undefined (reading 'dependencies') #437

@curious-george-nine

Description

@curious-george-nine

I tried to use this in my project. then it says an error.
using npm

patch-package 6.5.0
• Creating temporary folder
TypeError: Cannot read properties of undefined (reading 'dependencies')
    at Object.getPackageResolution (path\to\node_modules\patch-package\dist\getPackageResolution.js:89:40)
    at Object.makePatch (path\to\node_modules\patch-package\dist\makePatch.js:52:63)
    at path\to\node_modules\patch-package\dist\index.js:53:25
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (path\to\node_modules\patch-package\dist\index.js:52:22)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
path\to\node_modules\patch-package\dist\makePatch.js:218
        throw e;
        ^

TypeError: Cannot read properties of undefined (reading 'dependencies')
    at Object.getPackageResolution (path\to\node_modules\patch-package\dist\getPackageResolution.js:89:40)
    at Object.makePatch (path\to\node_modules\patch-package\dist\makePatch.js:52:63)
    at path\to\node_modules\patch-package\dist\index.js:53:25
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (path\to\node_modules\patch-package\dist\index.js:52:22)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions