Skip to content

TypeError: Cannot convert undefined or null to object #10

@otomad

Description

@otomad

I am trying write After Effects expressions in TypeScript. After creating a new project, then run npm run build and it works fine.

Then I tried to install package expression-globals-typescript in the project: npm install expression-globals-typescript --save-dev . After that it can no longer be npm run.

[!] TypeError: Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.<anonymous> (D:\test\rollup.config.js:24:20)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.require.extensions.<computed> [as .js] (D:\test\node_modules\rollup\dist\shared\loadConfigFile.js:621:20)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at loadConfigFromBundledFile (D:\test\node_modules\rollup\dist\shared\loadConfigFile.js:631:42)
    at getDefaultFromTranspiledConfigFile (D:\test\node_modules\rollup\dist\shared\loadConfigFile.js:613:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions