Skip to content

🤖 User test baselines have changed for refs/heads/master#40156

Merged
sandersn merged 1 commit intomicrosoft:masterfrom
typescript-bot:user-baseline-updates
Sep 24, 2020
Merged

🤖 User test baselines have changed for refs/heads/master#40156
sandersn merged 1 commit intomicrosoft:masterfrom
typescript-bot:user-baseline-updates

Conversation

@typescript-bot
Copy link
Collaborator

This test run was triggerd by a request on #33716
Please review the diff and merge if no changes are unexpected.
You can view the build log here.

cc @microsoft/typescript

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Aug 20, 2020
@typescript-bot typescript-bot force-pushed the user-baseline-updates branch 3 times, most recently from e4644e5 to e891608 Compare August 21, 2020 00:06
@uifabric/build: create-package/plop-templates-react/src/version.ts:3:28 - error TS2307: Cannot find module '@uifabric/set-version' or its corresponding type declarations.
@uifabric/build: 3 import { setVersion } from '@uifabric/set-version';
@uifabric/build: ~~~~~~~~~~~~~~~~~~~~~~~
@uifabric/build: exec-sync.js:4:7 - error TS6133: 'chalk' is declared but its value is never read.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed #40185 to track this

@typescript-bot typescript-bot force-pushed the user-baseline-updates branch 23 times, most recently from 3df14bc to 288649d Compare August 28, 2020 16:43
@typescript-bot typescript-bot force-pushed the user-baseline-updates branch 3 times, most recently from 961d1e5 to 0000299 Compare September 2, 2020 04:22
@typescript-bot typescript-bot force-pushed the user-baseline-updates branch 23 times, most recently from 951e867 to 452129c Compare September 8, 2020 16:41
Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just looked at azure-sdk and office-ui.

  • @rbuckton There was one breaking change from resolve requiring its argument that I wanted to make sure was an acceptable break
  • @orta same, except for Array.isArray now propagates readonly-ness.
  • @weswigham office-ui's build is broken pretty badly. It doesn't get the right configs, and is also missing whatever .d.ts has declare module "*.scss" in many cases. Can you see what needs to be fixed here?

@uifabric/build: at Process.callbackTrampoline (internal/async_hooks.js:120:14)
@uifabric/build: [XX:XX:XX XM] x stdout:
@uifabric/build: [XX:XX:XX XM] x create-package/plop-templates-node/just.config.ts:1:9 - error TS2451: Cannot redeclare block-scoped variable 'preset'.
@uifabric/build: 1 const { preset, just } = require('@uifabric/build');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like all these config files are now in the same compilation, and since we don't recognise const x = require as creating a module, they all conflict.

Not sure how this broke; there's only one file in the directory, sitting next to a tsconfig.

This error repros locally, though of course our build may not be that similar to the real build.

@weswigham can you investigate further? I'm not sure what to look at next.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notably, it works fine in the editor.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just.config.js is supposed to provide tsconfigs to the build process?

@uifabric/build: 1 const { preset, just } = require('@uifabric/build');
@uifabric/build: ~~~~~~
@uifabric/build: 'preset' was also declared here.
@uifabric/build: create-package/plop-templates-react/src/version.ts:3:28 - error TS2307: Cannot find module '@uifabric/set-version' or its corresponding type declarations.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also works fine in the editor

@uifabric/build: create-package/plop-templates-react/src/version.ts:3:28 - error TS2307: Cannot find module '@uifabric/set-version' or its corresponding type declarations.
@uifabric/build: 3 import { setVersion } from '@uifabric/set-version';
@uifabric/build: ~~~~~~~~~~~~~~~~~~~~~~~
@uifabric/build: gulp/plugins/util/getComponentInfo.ts:145:9 - error TS2322: Type 'Tag[]' is not assignable to type '{ title: string; description: string; type: null; name: string; }[]'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repros on 3.9 and 4.0 too

@uifabric/build: 49 tags: {
@uifabric/build: ~~~~
@uifabric/build: The expected type comes from property 'tags' which is declared here on type 'ComponentProp'
@uifabric/build: gulp/plugins/util/tsLanguageService.ts:25:18 - error TS2569: Type 'IterableIterator<string>' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm beginning to suspect that the tsconfigs are getting ignored, since scripts/tsconfig.json targets ES2018.

@uifabric/build: 25 return [...files.keys()];
@uifabric/build: ~~~~~~~~~~~~
@uifabric/build: gulp/tasks/browserAdapters.ts:58:7 - error TS2554: Expected 1 arguments, but got 0.
@uifabric/build: 58 resolve();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

known breaking change, right @rbuckton -- value isn't optional anymore?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

office-ui-fabric-react: src/components/MarqueeSelection/MarqueeSelection.base.tsx:89:12 - error TS2790: The operand of a 'delete' operator must be optional.
office-ui-fabric-react: 89 delete this._scrollableSurface;
office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~
office-ui-fabric-react: src/components/Persona/Persona.deprecated.test.tsx:113:13 - error TS2322: Type 'ReactWrapper<HTMLAttributes, any, Component<{}, {}, any>>' is not assignable to type 'ReactWrapper<ImgHTMLAttributes<any>, any, Component<{}, {}, any>>'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dom update, but from before 4.1

@uifabric/tsx-editor: 2 import * as monaco from '@uifabric/monaco-editor';
@uifabric/tsx-editor: ~~~~~~~~~~~~~~~~~~~~~~~~~
@uifabric/tsx-editor: src/transpiler/transpile.ts:26:11 - error TS7006: Parameter 'worker' implicitly has an 'any' type.
@uifabric/tsx-editor: 26 .then(worker => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also on 4.0

@uifabric/experiments: src/components/SelectedItemsList/Items/subcomponents/DefaultEditingItem.tsx:86:29 - error TS2339: Property 'editingInput' does not exist on type 'typeof import("*.scss")'.
@uifabric/experiments: 86 className={styles.editingInput}
@uifabric/experiments: ~~~~~~~~~~~~
@uifabric/experiments: src/components/SelectedItemsList/SelectedPeopleList/SelectedPeopleList.test.tsx:135:9 - error TS2322: Type 'ComponentType<TriggerProps<unknown>>' is not assignable to type 'ComponentClass<ISelectedItemProps<IPersonaProps & BaseSelectedItem>, any> | FunctionComponent<ISelectedItemProps<IPersonaProps & BaseSelectedItem>> | undefined'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repros on 4.0 too

@fluentui/react-checkbox: [XX:XX:XX XM] x stdout:
@fluentui/react-checkbox: [XX:XX:XX XM] x src/next/useCheckboxClasses.tsx:15:50 - error TS2345: Argument of type 'typeof import("*.scss")' is not assignable to parameter of type 'Record<string, string>'.
@fluentui/react-checkbox: Property 'styles' is incompatible with index signature.
@fluentui/react-checkbox: Type '{ [className: string]: string; }' is not assignable to type 'string'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repros on 4.0 too

@uifabric/api-docs: at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
@uifabric/api-docs: at Process.callbackTrampoline (internal/async_hooks.js:120:14)
@uifabric/api-docs: [XX:XX:XX XM] x stdout:
@uifabric/api-docs: [XX:XX:XX XM] x src/tableJson.ts:52:9 - error TS2322: Type 'readonly HeritageType[] | undefined' is not assignable to type 'HeritageType[] | undefined'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

due to Array.isArray's new narrowing behaviour. @orta, is this a desired error?

function f(extendsTypes: HeritageType | readonly HeritageType[]) {
  const e: HeritageType[] = Array.isArray(extendsTypes) ? extendsTypes : [extendsTypes];
}

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diffs are basically OK except for office-ui-fabric, but that needs an overhaul of the build entirely. I'm going to accept the changes for now, but we should fix the build so the test is actually useful.

/vue-next/packages/compiler-ssr/src/index.ts → packages/compiler-ssr/dist/compiler-ssr.cjs.js...
created packages/compiler-ssr/dist/compiler-ssr.cjs.js in ?s
/vue-next/packages/reactivity/src/index.ts → packages/reactivity/dist/reactivity.esm-bundler.js...
[!] (plugin rpt2) Error: /vue-next/packages/reactivity/src/collectionHandlers.ts(24,3): semantic error TS2322: Type 'T | DeepReadonly<UnwrapNestedRefs<T & Record<any, any>>>' is not assignable to type 'T'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from #39258 -- it's probably by-design, but it's hard to tell whether it should get an exemption.

node_modules/adonis-framework/src/Helpers/index.js(256,45): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
node_modules/adonis-framework/src/Helpers/index.js(330,31): error TS2339: Property 'mainModule' does not exist on type 'Process'.
node_modules/adonis-framework/src/Helpers/index.js(330,23): error TS2532: Object is possibly 'undefined'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@types/node update

node_modules/adonis-framework/src/Response/index.js(68,7): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
node_modules/adonis-framework/src/Response/index.js(76,15): error TS2304: Cannot find name 'Mixed'.
node_modules/adonis-framework/src/Response/index.js(95,16): error TS2304: Cannot find name 'Html'.
node_modules/adonis-framework/src/Response/index.js(144,12): error TS1003: Identifier expected.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error from @see (and in the rest of adonis)

node_modules/async/all.js(32,12): error TS2304: Cannot find name 'AsyncFunction'.
node_modules/async/all.js(49,20): error TS2695: Left side of comma operator is unused and has no side effects.
node_modules/async/all.js(49,46): error TS2695: Left side of comma operator is unused and has no side effects.
node_modules/async/allLimit.js(28,9): error TS1003: Identifier expected.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unexpected @see format: @see [title]{@link reference}

@@ -26,7 +25,6 @@ node_modules/chrome-devtools-frontend/front_end/Runtime.js(746,5): error TS2322:
Type '{}' is missing the following properties from type 'Window': applicationCache, clientInformation, closed, customElements, and 224 more.
node_modules/chrome-devtools-frontend/front_end/Runtime.js(1083,15): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
node_modules/chrome-devtools-frontend/front_end/Runtime.js(1088,15): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
node_modules/chrome-devtools-frontend/front_end/Tests.js(107,5): error TS2322: Type 'Timeout' is not assignable to type 'number'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure whether this is an improvement in control flow or in @types/node types.

lib/FlagDependencyExportsPlugin.js(295,16): error TS2339: Property 'log' does not exist on type 'typeof WebpackLogger'.
lib/FlagDependencyExportsPlugin.js(309,16): error TS2339: Property 'time' does not exist on type 'typeof WebpackLogger'.
lib/FlagDependencyExportsPlugin.js(330,18): error TS2339: Property 'timeEnd' does not exist on type 'typeof WebpackLogger'.
lib/ExportsInfo.js(1063,28): error TS1016: A required parameter cannot follow an optional parameter.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from new code; repros in 4.0 too

Property 'prototype' does not exist on type 'Math'.
node_modules/uglify-js/lib/propmangle.js(70,45): error TS2339: Property 'prototype' does not exist on type 'ObjectConstructor | FunctionConstructor | StringConstructor | BooleanConstructor | NumberConstructor | ... 4 more ... | ArrayConstructor'.
node_modules/uglify-js/lib/propmangle.js(71,44): error TS2351: This expression is not constructable.
Not all constituents of type 'ObjectConstructor | FunctionConstructor | StringConstructor | BooleanConstructor | NumberConstructor | ... 4 more ... | ArrayConstructor' are constructable.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better checking for construct signatures on unions? This error is correct ,at least.

node_modules/uglify-js/lib/parse.js(1506,35): error TS2531: Object is possibly 'null'.
node_modules/uglify-js/lib/parse.js(1551,52): error TS2531: Object is possibly 'null'.
node_modules/uglify-js/lib/propmangle.js(69,18): error TS2339: Property 'prototype' does not exist on type 'ObjectConstructor | FunctionConstructor | StringConstructor | BooleanConstructor | NumberConstructor | ... 4 more ... | ArrayConstructor'.
node_modules/uglify-js/lib/parse.js(1120,17): error TS2454: Variable 'cur' is used before being assigned.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this error comes from the same information as before, and is just as correct; I'm not sure what caused it to change, though.

Type 'TreeTransformer' is missing the following properties from type 'TreeWalker': currentNode, filter, root, whatToShow, and 10 more.
node_modules/uglify-js/tools/exit.js(10,37): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[code?: number | undefined]'.
Target allows only 1 element(s) but source may have more.
node_modules/uglify-js/tools/exports.js(1,1): error TS2303: Circular definition of import alias '"Dictionary"'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this used to be ignored, now it's treated like a real export and gives an error because none of the references resolve.

Exit Code: 2
Standard output:
node_modules/@types/enzyme/index.d.ts(368,15): error TS2304: Cannot find name 'Cheerio'.
node_modules/@types/enzyme/index.d.ts(640,69): error TS2304: Cannot find name 'Cheerio'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@types/enzyme@2 specifies @types/cheerio@*, so it gets the newest, incompatible version...

This is a Typescript-react-starter problem, not a user problem. I'll see if we care about upgrading to a newer version of enzyme.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants