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

TypeError: logger.error is not a function #9

Open
kplanes opened this issue Aug 19, 2020 · 0 comments · May be fixed by #13
Open

TypeError: logger.error is not a function #9

kplanes opened this issue Aug 19, 2020 · 0 comments · May be fixed by #13

Comments

@kplanes
Copy link

kplanes commented Aug 19, 2020

HI Justin,

I have contacted you on Snapchat to discuss the above before raising it as a possible bug - Currently trying to run Meteor-hero on a small meteor app and facing the below issue.

meteor --version
Meteor 1.8.1
On MINGW64 (W10/GIT Bash)

$meteor-hero
clearing build folder
Building meteor app...
Building meteor app (this can take several minutes)
build: too many arguments.
Usage: meteor build <output path> [--debug] [--directory] [--server-only]
          [--mobile-settings settings.json] [--server http://example.com:3000]

Package this project up for deployment. The command outputs a directory with
builds for all platforms in this project.

If you have added mobile platforms to your project with the
'meteor add-platform' command, then the output directory will contain
subdirectories named 'android' (with the APK bundle and Android project
source) and/or 'ios' (with the Xcode project source).

Pass `--server-only` to skip building mobile apps, but still build the
'web.cordova' client target so the server can support hot code push
for Cordova apps.

The output directory will contain a tarball that includes everything necessary
to run the application server. (See README in the tarball for details.)

Options:
  --debug             Build in debug mode (don't minify, etc).
  --directory         Output a directory (rather than a tarball) for the
                      application server bundle. If the output location exists,
                      it will be recursively deleted first.
  --server-only       Skip building mobile apps even if mobile platforms have
                      been added.
  --mobile-settings   Set optional data for the initial value of Meteor.settings
                      in your mobile application. A new value for
                      Meteor.settings can be set later by the server as part of
                      hot code push.
  --server            Location where mobile builds connect to the Meteor server.
                      Defaults to localhost:3000. Can include a URL scheme
                      (for example, --server=https://example.com:443).
  --architecture      Builds the server for a different architecture than your
                      developer machine's architecture. Valid architectures
                      include os.osx.x86_64, os.linux.x86_64, os.linux.x86_32,
                      os.windows.x86_32, and os.windows.x86_64. Note: This
                      option selects the architecture of the binary-dependent
                      Atmosphere packages you would like bundled into your
                      application, when those packages were specifically
                      published for multiple architectures (i.e. with meteor
                      publish-for-arch). If your project doesn't use any
                      Atmosphere packages that have binary dependencies,
                      --architecture has no effect.
  --allow-incompatible-update   Allow packages in your project to be upgraded or
                      downgraded to versions that are potentially incompatible
                      with the current versions, if required to satisfy all
                      package version constraints.

  🚨 Something happened that probably shouldn't have.

  Details:
    TypeError: logger.error is not a function
    at buildMeteorApp (C:\Users\NIM\AppData\Roaming\npm\node_modules\meteor-hero\commands\newDeploy.js:45:12)
    at newDeploy (C:\Users\NIM\AppData\Roaming\npm\node_modules\meteor-hero\commands\newDeploy.js:154:3)
    at Object.<anonymous> (C:\Users\NIM\AppData\Roaming\npm\node_modules\meteor-hero\index.js:13:5)
    at Module._compile (internal/modules/cjs/loader.js:1201:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
    at Module.load (internal/modules/cjs/loader.js:1050:32)
    at Function.Module._load (internal/modules/cjs/loader.js:938:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 
@dachrisch dachrisch linked a pull request Dec 6, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant