You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn run v1.5.1
warning package.json: No license field
$ /workspace/github/foxx/node_modules/.bin/foxx init test
Sorry! An unexpected error occurred. This is likely a bug in foxx-cli.
Please open an issue at https://github.com/arangodb/foxx-cli/issues with a full copy of the following error message and a description of what you were trying to do when this problem occured.
ReferenceError: ejs:3
1| 'use strict';
2|
>> 3| <% if (generateCrudRoutes && typeof documentCollections !== 'undefined') {
4| documentCollections.forEach(function (collection) { -%>
5| module.context.use('/<%- collection %>', require('./api/<%- collection %>'), '<%- collection %>');
6| <% })
generateCrudRoutes is not defined
at eval (eval at compile (/workspace/github/foxx/node_modules/ejs/lib/ejs.js:584:12), <anonymous>:11:8)
at returnedFn (/workspace/github/foxx/node_modules/ejs/lib/ejs.js:615:17)
at exports.render (/workspace/github/foxx/node_modules/ejs/lib/ejs.js:414:37)
at /workspace/github/foxx/node_modules/foxx-cli/dist/generator/index.js:6:12
at Generator.next (<anonymous>)
at step (/workspace/github/foxx/node_modules/foxx-cli/dist/generator/index.js:25:191)
at /workspace/github/foxx/node_modules/foxx-cli/dist/generator/index.js:25:437
at new Promise (<anonymous>)
at /workspace/github/foxx/node_modules/foxx-cli/dist/generator/index.js:25:99
at generateFile (/workspace/github/foxx/node_modules/foxx-cli/dist/generator/index.js:10:17)
We apologize for the inconvenience.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c /workspace/github/foxx/node_modules/.bin/foxx init test
Directory: /workspace/github/foxx
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/workspace/github/foxx/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
Standing in a newly created folder:
> yarn add --dev foxx-cli
> yarn foxx init test
The text was updated successfully, but these errors were encountered: