You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kendo-react-dropdowns does not work with create-react-app when using typescript.
node_modules/@progress/kendo-react-dropdowns/dist/npm/common/settings.d.ts
Type error: Ambient const enums are not allowed when the '--isolatedModules' flag is provided. TS1209
Expected behavior
Using <DropDownList> should not cause an error.
Minimal reproduction of the problem with instructions
Note: Constant enums and namespaces are not supported.
Now attempt to use kendo-react-dropdowns:
npm install @progress/kendo-react-dropdowns
...
import {DropDownList} from "@progress/kendo-react-dropdowns";
Gives:
node_modules/@progress/kendo-react-dropdowns/dist/npm/common/settings.d.ts
Type error: Ambient const enums are not allowed when the '--isolatedModules' flag is provided. TS1209
98 | * @hidden
99 | */
> 100 | export declare const enum ActiveDescendant {
| ^
101 | 'PopupList' = 0,
102 | 'TagsList' = 1
103 | }
What is the motivation or use case for changing the behavior?
react-create-app is the standard way of create react applications, and have selected the babel typescript integration as the 'blessed' way of using typescript.
Certainly, the typescript standard supports this feature, but DropDownList is a fundamental component; this is a show-stopper for using kendo-react.
Thank you for reporting this issue - we will investigate how to improve this behavior in next releases. Until fix is released you can fix the issue as suggestted in the following thread:
I'm submitting a...
Current behavior
kendo-react-dropdowns does not work with create-react-app when using typescript.
Expected behavior
Using
<DropDownList>
should not cause an error.Minimal reproduction of the problem with instructions
Now follow the guide here to enable typescript:
https://facebook.github.io/create-react-app/docs/adding-typescript
Note the comment at the end of the documentation:
Now attempt to use kendo-react-dropdowns:
...
Gives:
What is the motivation or use case for changing the behavior?
react-create-app is the standard way of create react applications, and have selected the babel typescript integration as the 'blessed' way of using typescript.
Certainly, the typescript standard supports this feature, but
DropDownList
is a fundamental component; this is a show-stopper for using kendo-react.Environment
Package versions:
Browser:
Since this prevents compile, it affects all browsers.
System:
The text was updated successfully, but these errors were encountered: