-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error running jsxbin in gulp #26
Comments
Hi! Difficult to say exactly what is going on, but here are some troubleshooting suggestions: Have you tried running the same code outside of gulp? Do you get the same error? How are you referencing the file to convert? Is it an absolute or absolute or relative path? Are you using variables? Maybe they are giving some wrong values. What is the contents of the file you are converting? Try with something simpler, maybe there is some issue with the parsing of the code. Try some of those and get back to me, and I'll take a closer look. I have found that when jsxbin breaks it is usually either in the file I am trying to convert, the contents has syntax errors, or the path to it, I am not referencing the file correctly. |
Sorry for the late reply. And thx for your suggestions. After trying those many times, I finally found what was causing the error. This is a great plugin, but I have 2 questions:
Thanks for this great plguin! |
hi! Sorry for late reply!
|
I want to automate my workflow, but this is always giving me error in gulp 4.
My gulp code:
`const jsxbin = require('jsxbin');
function toJsxbin() {
return jsxbin('myScript.jsx');
}
exports.toJsxbin = toJsxbin;`
Then I type
gulp toJsxbin
in vscode terminal.Everytime I got this error:
[22:58:46] Starting 'toJsxbin'...
[22:58:48] 'toJsxbin' errored after 2.26 s
[22:58:48] Error: Error with ESTK: 'unknown'
at getESDError (D:\Adobe_Scripting\ZXP_Packaging\node_modules\jsxbin\src\convertScripts.js:32:8)
at convertFileContents (D:\Adobe_Scripting\ZXP_Packaging\node_modules\jsxbin\src\convertScripts.js:56:3)
at convertScripts (D:\Adobe_Scripting\ZXP_Packaging\node_modules\jsxbin\src\convertScripts.js:79:27)
at D:\Adobe_Scripting\ZXP_Packaging\node_modules\jsxbin\index.js:61:16
What I am missing?
Thx in advance.
The text was updated successfully, but these errors were encountered: