-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
undefined is not an object when used in a React Native project. #47
Comments
I'm not seeing how that stack trace is pointing to |
@Qix- when I click on the top index.js line 4 it brings me to the index.js for supports-color. To be honest I'm not sure if |
Well Chalk is really for terminal emulators (console, terminals, etc.). If you're not running on one of those, Chalk isn't really going to help you much. |
Okay fair enough, thank you for your help! |
No problem! Sorry I couldn't be of more help. |
Ran into this when trying to use Chalk with |
Hello,
I'm messing around with React Native and I wanted to try using chalk to help make some of the logs more clear. I'm running into an issue though at the import/require step.
If I try
import chalk from 'chalk';
orconst chalk = require('chalk');
I receive the following error:Here are the output of the React Packager:
If I'm following the stack trace correctly its complaining about lines 2-4 in supports-color/index.js:
Further info:
OS: OSX v10.11.6
Node: v5.9.1
NPM: v3.10.8
React Native: v0.39.2
Chalk: v^1.1.3
The text was updated successfully, but these errors were encountered: