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

backgroundColor prop in Text component fails #410

Closed
smtrd3 opened this issue Dec 31, 2020 · 1 comment
Closed

backgroundColor prop in Text component fails #410

smtrd3 opened this issue Dec 31, 2020 · 1 comment

Comments

@smtrd3
Copy link

smtrd3 commented Dec 31, 2020

I am using the typescript template of create-ink-app,
backgroundColor in <Text/> component throws this error:

TypeError: chalk_1.default[method] is not a function
at Object.exports.default (/home/smtrd3/projects/devenv/node_modules/ink/build/colorize.js:21:39)
at transform (/home/smtrd3/projects/devenv/node_modules/ink/build/components/Text.js:24:42)
at Output.get (/home/smtrd3/projects/devenv/node_modules/ink/build/output.js:40:28)
at Object.exports.default (/home/smtrd3/projects/devenv/node_modules/ink/build/renderer.js:29:74)
at Object.Ink.onRender [as onImmediateRender] (/home/smtrd3/projects/devenv/node_modules/ink/build/ink.js:49:78)
at invokeFunc (/home/smtrd3/projects/devenv/node_modules/lodash/lodash.js:10359:23)
at leadingEdge (/home/smtrd3/projects/devenv/node_modules/lodash/lodash.js:10369:26)
at Object.debounced [as onRender] (/home/smtrd3/projects/devenv/node_modules/lodash/lodash.js:10436:20)
at resetAfterCommit (/home/smtrd3/projects/devenv/node_modules/ink/build/reconciler.js:42:22)
at commitRootImpl (/home/smtrd3/projects/devenv/node_modules/react-reconciler/cjs/react-reconciler.development.js:15066:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! devenv@0.0.0 start: npm run build && dist/cli.js
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the devenv@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/smtrd3/.npm/_logs/2020-12-31T06_36_59_044Z-debug.log

@vadimdemedes
Copy link
Owner

Could you show your app code?

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