TS error with `createConfig`
See original GitHub issueHey, 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:
- Created a year ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome, thanks ^^
thanks, should be fixed in latest version; I’ve tested with your config here to confirm its working 😃