question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing deprecation warning for deprecated tokenName property

See original GitHub issue

The error: Error: Missing configuration keys: [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] It happens after checking for missing config keys.

Part of the stack trace:

Error: Missing configuration keys: [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,  ]
    at checkForMissingConfigurationKeys (/home/mathieu/WebstormProjects/jhipster-core/lib/dsl/self_checks/parsing_system_checker.js:74:11)
    at checkConfigKeys (/home/mathieu/WebstormProjects/jhipster-core/lib/dsl/self_checks/parsing_system_checker.js:57:3)
    at Object.<anonymous> (/home/mathieu/WebstormProjects/jhipster-core/lib/dsl/validator.js:27:8885)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Module.replacementCompile (/home/mathieu/WebstormProjects/jhipster-core/node_modules/append-transform/index.js:58:13)
    at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Object.<anonymous> (/home/mathieu/WebstormProjects/jhipster-core/node_modules/append-transform/index.js:62:4)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/mathieu/WebstormProjects/jhipster-core/lib/dsl/api.js:17:301)

I can provide the entire stack trace if you want. I’ll try to find why in the meantime

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bd82commented, Sep 28, 2019

Hmm yeah A getter that acts as an alias (to avoid actual duplication) would be best. Next major version the getter can be modified to throw an descriptive error.

1reaction
bd82commented, Sep 28, 2019

I am thinking about adding a getter to X.tokenName that will throw a descriptive error message. That seems that it would reduce 95% of the problem with 5% of the effort.

What do you think @MathieuAA ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deprecation warnings not working for properties in a list of ...
Describe the bug When a property is deprecated, and that property is used in an ... fix(jsii): missing deprecation warning in collections
Read more >
Deprecating properties of class in python - Stack Overflow
Expected behaviour: If user tries to use variable 2 he should get warning that its deprecated. python · deprecated · deprecation-warning · Share....
Read more >
Warning: expression closures are deprecated - MDN Web Docs
The JavaScript warning "expression closures are deprecated" occurs when the non-standard expression closure syntax (shorthand function ...
Read more >
Cloudflare API v4 Documentation
Deprecation Warning. End of life Date: February 4, 2020. This endpoint and its related APIs are deprecated in favor of the `/accounts` equivalent...
Read more >
Why am I not getting deprecation warnings for UIAlertView?
It uses UIAlertView a lot, which was deprecated in iOS 9, but I'm not seeing any deprecation warnings when I build the app....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found