Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot convert undefined or null to object #10

Open
otomad opened this issue Aug 17, 2022 · 1 comment
Open

TypeError: Cannot convert undefined or null to object #10

otomad opened this issue Aug 17, 2022 · 1 comment

Comments

@otomad
Copy link

otomad commented Aug 17, 2022

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)
@timhaywood
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants