Comments (2)
This module mainly targets Node.js, not the browser. It's up to you to transpile it with Babel if you want to use it in the browser. You can find a more detailed explanation here: sindresorhus/ama#446
If you use Webpack, check out babel-engine-plugin
, which transpiles only the dependencies that needs to be transpiled.
If you use Create React App, upgrade to Create React App v2. It supports automatic transpilation of dependencies, which will make this package just work.
from ansi-styles.
Ah, ok I had the following issue:
https://create-react-app.dev/docs/supported-browsers-features
When editing the browserslist config, you may notice that your changes don't get picked up right away. This is due to an issue in babel-loader not detecting the change in your package.json. A quick solution is to delete the node_modules/.cache folder and try again.
from ansi-styles.
Related Issues (20)
- blackBright is mentioned in README but is not implemented HOT 17
- NPM install error HOT 7
- Ambiguous error when keyword doesn't exist HOT 10
- Did the 2.2.0 release disappear? HOT 3
- Unable to install the package HOT 1
- missing module => 'color-convert' HOT 1
- Why the open/close API HOT 6
- No greenBright open and close HOT 1
- blackBright doesn't exist
- Uncaught SyntaxError: Use of const in strict mode. HOT 2
- Syntax error in IE11 due to arrow function currying HOT 4
- IE11 syntax error HOT 3
- Why is @types/color-name a production dependency? HOT 4
- Add support for overline HOT 6
- Can't import into TypeScript node project HOT 2
- Add support for superscript and subscript HOT 2
- Problem from version`5+` to Regex when using ReactNative Hermes engine HOT 1
- '[email protected]' is not in the npm registry. HOT 1
- Blinking text HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansi-styles.