Closed lanmolsz closed 6 years ago
Just for information, it's related to #18 and #21.
@julien-lafont I downloaded the source code to my machine and ran the build
command, though I get some error messages but I can build it successfully.
@jarrodek
I updated the latest version, the previous error was resolved. But got a new error(running api-console build xxx
):
info: Done.
(node:10392) UnhandledPromiseRejectionWarning: TypeError: file.isSymbolic is not a function
at DestroyableTransform.normalize [as _transform] (D:\work\Nodejs\node_modules\api-console-cli\node_modules\vinyl-fs\lib\dest\prepare.js:31:15)
at DestroyableTransform.Transform._read (D:\work\Nodejs\node_modules\api-console-cli\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:182:10)
at DestroyableTransform.Transform._write (D:\work\Nodejs\node_modules\api-console-cli\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:170:83)
at doWrite (D:\work\Nodejs\node_modules\api-console-cli\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:406:64)
at writeOrBuffer (D:\work\Nodejs\node_modules\api-console-cli\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:395:5)
at DestroyableTransform.Writable.write (D:\work\Nodejs\node_modules\api-console-cli\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:322:11)
at Pumpify.Duplexify._write (D:\work\Nodejs\node_modules\api-console-cli\node_modules\duplexify\index.js:201:22)
at doWrite (D:\work\Nodejs\node_modules\api-console-cli\node_modules\duplexify\node_modules\readable-stream\lib\_stream_writable.js:406:64)
at writeOrBuffer (D:\work\Nodejs\node_modules\api-console-cli\node_modules\duplexify\node_modules\readable-stream\lib\_stream_writable.js:395:5)
at Pumpify.Writable.write (D:\work\Nodejs\node_modules\api-console-cli\node_modules\duplexify\node_modules\readable-stream\lib\_stream_writable.js:322:11)
at BuildBundler.ondata (_stream_readable.js:642:20)
at BuildBundler.emit (events.js:159:13)
at addChunk (_stream_readable.js:265:12)
at readableAddChunk (_stream_readable.js:252:11)
at BuildBundler.Readable.push (_stream_readable.js:209:10)
at BuildBundler.Transform.push (_stream_transform.js:146:32)
at BuildBundler.<anonymous> (D:\work\Nodejs\node_modules\api-console-cli\node_modules\polymer-build\lib\streams.js:217:30)
at Generator.next (<anonymous>)
at fulfilled (D:\work\Nodejs\node_modules\api-console-cli\node_modules\polymer-build\lib\streams.js:17:58)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
(node:10392) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7)
(node:10392) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Still working...
Still working...
@lanmolsz it looks like vinyl library used by the Polymer build receives a null file. However, I can't reproduce this issue. Is the build fails (no build directory with console's sources)? What is node version?
I got the same error. I'm running api-console in a docker container based on node:6
It appears you can work around this if you have an index.html as api-console generate-json is working (at least for me).
I've the same issue with the "Still working". I'll open a new issue for that
Finally, an rm -Rf node_modules
has solved the problem for me.
Running
api-console build helloworld.raml
failed, Whether it's local files or web resources.I got the error message:
In addition, other commands will fail to execute, for example:
api-console generate-json helloworld.raml
It will output the error message :Required ` json` property not found.
api-console dev helloworld.raml
It will output the error message: