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

npm run build error #132

Open
Julien-Marpault opened this issue Mar 9, 2023 · 3 comments
Open

npm run build error #132

Julien-Marpault opened this issue Mar 9, 2023 · 3 comments

Comments

@Julien-Marpault
Copy link

ERROR in C:\Azure DevOps\Extensions\MicrosoftSamples\src\Samples\WorkItemOpen\WorkItemOpen.tsx
./src/Samples/WorkItemOpen/WorkItemOpen.tsx
[tsl] ERROR in C:\Azure DevOps\Extensions\MicrosoftSamples\src\Samples\WorkItemOpen\WorkItemOpen.tsx(44,104)
TS2322: Type 'ObservableValue' is not assignable to type 'string | IReadonlyObservableValue<string | undefined> | undefined'.
Type 'ObservableValue' is not assignable to type 'IReadonlyObservableValue<string | undefined>'.
The types returned by 'subscribe(...)' are incompatible between these types.
Type '(value: string, action?: string | undefined) => void' is not assignable to type '(value: string | undefined, action?: string | undefined) => void'.
Types of parameters 'value' and 'value' are incompatible.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.

webpack 5.76.0 compiled with 1 error in 6853 ms
(node:44748) [DEP_WEBPACK_MODULE_ERRORS] DeprecationWarning: Module.errors was removed (use getErrors instead)
(Use node --trace-deprecation ... to show where the warning was created)

@karelkral
Copy link

As I remember, I had to turn off strictFunctionTypes, as seen bellow.
Just try to turn off strictFunctionTypes in tsconfig.json

@jumorelle
Copy link

jumorelle commented May 25, 2023

Hi, this works for me. But why MS doesn't put the ui sdk on github ?! Do you know how to open issues on the azure-devops-ui library ? Because this shouldn't been reported here.

@karelkral
Copy link

There is not any support for ui SDK, forums, or issues. Terrible.

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

3 participants