expression-globals-typescript icon indicating copy to clipboard operation
expression-globals-typescript copied to clipboard

TypeError: Cannot convert undefined or null to object

Open otomad opened this issue 3 years ago • 1 comments

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)

otomad avatar Aug 17 '22 04:08 otomad

I would recommended using [create-expression-lib] to do the setup for you rather than installing it manually, are you able to try that for me?

Should be able to run npx create-expression-lib and follow the prompts to set it up.

timhaywood avatar Aug 29 '22 01:08 timhaywood