-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
I can't run example code #25
Comments
Did you set the pragma to |
I did, I tried to run babel again and it worked like after 6 tries |
I meet the same situation.. |
how exactly have you fixed this?
{
"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"
}
}
{
"presets": [
"es2015"
],
"plugins": [
[
"transform-react-jsx",
{
"pragma": "h",
"useBuiltIns": true
}
]
]
} |
My NodeJS version is
Hope this helps |
@TimRChen @gailingmic what error do you get? |
I run the demo successfully by using https://github.com/vadimdemedes/generator-ink-cli. Thanks for the generator. @vadimdemedes |
You're welcome, @TimRChen! |
@szymex73 example code https://github.com/TimRChen/react-cli |
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. |
I copy/pasted example code and tried to use
jsx
npm module to run it, transpile it, I also tried to transpile it using Babel but that didn't work either.How should I run it?
The text was updated successfully, but these errors were encountered: