Comments (10)
@szymex73 example code https://github.com/TimRChen/react-cli
from ink.
Did you set the pragma to h
?
from ink.
I did, I tried to run babel again and it worked like after 6 tries
from ink.
I meet the same situation..
from ink.
how exactly have you fixed this?
I can't get it to work at all with this setup
package.json
{
"name": "inkTest",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "babel index.js --out-file index.transpiled.js"
},
"dependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-node6": "^11.0.0",
"ink": "^0.3.0"
}
}
.babelrc
{
"presets": [
"es2015"
],
"plugins": [
[
"transform-react-jsx",
{
"pragma": "h",
"useBuiltIns": true
}
]
]
}
from ink.
My NodeJS version is v7.10.0
npm install --save-dev babel-plugin-transform-h-jsx
.babelrc
{
"plugins": ["transform-h-jsx"]
}
Hope this helps
from ink.
@TimRChen @gailingmic what error do you get?
from ink.
I run the demo successfully by using https://github.com/vadimdemedes/generator-ink-cli. Thanks for the generator. @vadimdemedes
from ink.
You're welcome, @TimRChen!
from ink.
Closing due to lack of response. Feel free to reply here or open a new issue with more details, if anyone's still experiencing problems.
from ink.
Related Issues (20)
- Render Output to Calling Function
- CI is currently broken
- Github CI Pipeline fails when using bold text using vitest snapshot tests HOT 1
- RFE: expose index of output line in Transform HOT 1
- This project is dumb HOT 1
- "space-evenly" value is missing for justifyContent property of the Box Component HOT 5
- SyntaxError: Unexpected token '<' HOT 1
- Addition of `@alcalzone/ansi-tokenize` is a breaking change as it only supports Node 16+ HOT 5
- Please fix the issue that TS can't find ink's types HOT 1
- ReferenceError: self is not defined with DEV=true and ESM
- Ink 4.4.0 doesn't wait for user input from `stdin` on second mount HOT 15
- ink 4.4.x breaks text input tests HOT 1
- mouse click hook HOT 2
- Ignore OSC ansi sequences when calculating line length HOT 2
- Ink 4.4.x incorrectly detects backspace HOT 2
- Bun support HOT 2
- Friendly request to include tailwind-ink in the README HOT 1
- Just wondering
- Is there an example of showing QR code? HOT 1
- Dead Demo links in README
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 ink.