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

Parsing command line arguments always sets env as "start" - Windows OS #58

Open
dejanjankovic opened this issue Mar 14, 2022 · 0 comments

Comments

@dejanjankovic
Copy link

This is a Bug Report

Description

  • What went wrong?
  • Compiling the build crashed
  • What did you expect should have happened?
  • Compile
  • What was the config (if any) you used?
  • Config from the kopytko-cli template
  • What stacktrace or error message did you see?
  • Details:
  • On Windows 10 [kopytko-packager\src\env\args.js line 19] will have the "start" parsed as the first argument, and then it ignores the second argument, like "dev" or no arguments

Similar or dependent issues:
*

Additional Data

  • Which version of node and npm are you using?: 17.5.0 and 8.5.4
  • Operating System: Windos 10 64
  • Stack Trace:
kopytko start "dev"

KopytkoError: There is no config defined for start environment.
    at KopytkorcReader.getEnvConfig (C:\Framework\test-framework\node_modules\@dazn\kopytko-packager\src\env\kopytkorc-reader.js:63:13)
    at KopytkorcReader._getEnvManifestConfig (C:\Framework\test-framework\Framework\pevac-framework\node_modules\@dazn\kopytko-packager\src\env\kopytkorc-reader.js:90:28)
    at KopytkorcReader.getManifestConfig (C:\Framework\test-framework\pevac-framework\node_modules\@dazn\kopytko-packager\src\env\kopytkorc-reader.js:45:36)    
    at getManifestConfig (C:\Framework\test-framework\node_modules\@dazn\kopytko-packager\src\env\kopytko-config.js:9:78)
    at Object.<anonymous> (C:\Framework\test-framework\node_modules\@dazn\kopytko-packager\src\env\kopytko-config.js:36:18)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Framework\test-framework\node_modules\@dazn\kopytko-packager\src\core\plugins.js:3:44)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
  • Provider Error messages:
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