Skip to content
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

generateCrudRoutes is not defined #27

Closed
jschill opened this issue Apr 12, 2018 · 1 comment
Closed

generateCrudRoutes is not defined #27

jschill opened this issue Apr 12, 2018 · 1 comment
Assignees
Labels

Comments

@jschill
Copy link

jschill commented Apr 12, 2018

Standing in a newly created folder:

> yarn add --dev foxx-cli
> yarn foxx init test

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.
@mvollmary mvollmary added the bug label Apr 13, 2018
@mvollmary mvollmary self-assigned this Apr 13, 2018
@mvollmary
Copy link
Contributor

fixed in 1.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants