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.

TS error with `createConfig`

See original GitHub issue

Hey, I’m getting a TS error with the latest v4 when using createConfig with just the rules and overrides options like in the README. It seems that TS thinks that cwd and a bunch of other options are mandatory.

I think the default values for all those options should be duplicated in the function signature of createConfig - e.g. cwd = process.cwd(), or set to undefined.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
axelboccommented, Jul 20, 2022

Awesome, thanks ^^

0reactions
ljosberinncommented, Jul 20, 2022

thanks, should be fixed in latest version; I’ve tested with your config here to confirm its working 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

next-i18next/createConfig.ts at master - GitHub
throw new Error('config.lng was not passed into createConfig'). } //. // Initial merge of default and user-provided config. //. const { i18n: userI18n,...
Read more >
TypeError: Cannot read property 'createConfig' of undefined
Platform: ReactNative app with Typescript. Was able to integrate and run the app with Okta, the “” component renders the button, but
Read more >
85 - Stack Overflow
1. This seems to be an open issue with CRA. On the other hand, the @react-leaflet/core module has a tsconfig target of ES2019,...
Read more >
ngx-input-errors - npm
The ngx-input-errors library provides dynamic error messages for Angular Forms validations and automatic error extraction for displaying error ...
Read more >
How and where to create config.yml file to get the connection ...
(with an editor or with R using file.create("config.yml") to get an empty file to ... Schema:'TS' ... Rmd file to load this file...
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