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

VueJS #640

Open
4 tasks
jgwinner opened this issue Mar 1, 2019 · 0 comments
Open
4 tasks

VueJS #640

jgwinner opened this issue Mar 1, 2019 · 0 comments

Comments

@jgwinner
Copy link

jgwinner commented Mar 1, 2019

What type of issue are you creating?

  • [x ] Bug
  • Enhancement
  • Question

What version of this module are you using?

  • 2.0.10 (Stable)
  • 2.1.0-rc.n (2.1 Release Candidate n)
  • [x ] Other 2.1.2 and you need to fix this template

Write other if any:

Please add a description for your issue:

VueJS seems to be broken, unless you intended the to be without an oxford comma:


[f:\OurApp]./node_modules/.bin/lb-sdk server\server.js -l "vuejs" sdk/VueJS


Swagger: skipping unknown type "Binary".
Loading Framework vuejs
Generating "sdk" for the API endpoint "/api"
f:\OurApp\node_modules\@mean-expert\loopback-sdk-builder\bin\lb-sdk:167
  generator[context.framework](context);
                              ^

TypeError: generator[context.framework] is not a function
    at runGenerator (f:\OurApp\node_modules\@mean-expert\loopback-sdk-builder\bin\lb-sdk:167:31)
    at Function.verifyPath (f:\OurApp\node_modules\@mean-expert\loopback-sdk-builder\bin\lb-sdk:118:5)
    at Object.onceWrapper (events.js:273:13)
    at Function.emit (events.js:182:13)
    at f:\OurApp\node_modules\loopback-boot\lib\executor.js:63:9
    at f:\OurApp\node_modules\loopback-boot\node_modules\async\lib\async.js:251:17
    at f:\OurApp\node_modules\loopback-boot\node_modules\async\lib\async.js:154:25
    at f:\OurApp\node_modules\loopback-boot\node_modules\async\lib\async.js:248:21
    at f:\OurApp\node_modules\loopback-boot\node_modules\async\lib\async.js:612:34
    at process._tickCallback (internal/process/next_tick.js:61:11)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:266:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)

It is mentioned in the arg list:


******************************************* LoopBack SDK Builder 2.0 *******************************************

Generate Client SDK for your LoopBack Application.
Usage:
 ./node_modules/.bin/lb-sdk server/server app/shared/sdk -d [ng2web | ng2native | ng2universal] -i [enabled | disabled] -v [enabled | strict | disabled]

Options:
  -l, --library         Client's library (angular, react, vuejs <todo> ...)                     [default: "angular2"]
  -d, --driver          Platform specific drivers (ng2web, ng2native, ng2universal, react-web)  [default: "ng2web"]
  -i, --io              Enable PubSub, IO and FireLoop functionality                            [default: "enabled"]
  -n, --ngrx            Enable NGRX functionality (enabled | orm) EXPERIMENTAL FEATURE
  -w, --wipe            Automatically wipe SDK Directory                                        [default: "disabled"]
  -v, --default-values  Add default values in models                                            [default: "disabled"]
  -f, --fireloop-only   Generate only FireLoop SDK + Auth Services                              [default: "disabled"]
  -q, --quiet           quiet mode - no console output (forces -w)                              [default: false]
  -t, --typescript      Enable Typescript default true ( React Only )                           [default: true]

Not enough non-option arguments: got 0, need at least 1

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

No branches or pull requests

1 participant