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

Re-add lock file, fix build breaks #297

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

tiagoshibata
Copy link
Contributor

Builds were failing after the lockfile was deleted by accident and some transitive dependencies were updated. It was deleted a long time ago (before WinML Dashboard was moved to this repo - it's available in the internal WindowsAI repo history only).

babel-minify is failing to minify Netron with a stack depth limit reached. I don't know if it's a bug in babel-minify with some infinite recursion, or the Netron source is too large for it to handle. Since the dashboard is low priority and not in my taskboard, I simply disabled minifying Netron for now, which adds a few hundred kilobytes to the build. We can investigate this later.

Since I was adjusting the packages and fixing build breaks I also updated the packages in package.json, which were quite outdated.

@tiagoshibata tiagoshibata requested a review from a team as a code owner February 29, 2020 01:16
"ncp": "^2.0.0",
"npm-font-open-sans": "^1.1.0",
"office-ui-fabric-react": "^6.40.0",
"react": "^16.5.2",
"react-app-rewired": "^1.5.2",
"react-app-rewired": "^2.1.5",
Copy link
Member

@zhangxiang1993 zhangxiang1993 Mar 2, 2020

Choose a reason for hiding this comment

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

Please use the lower version of react-app-rewired because of this timarney/react-app-rewired#358. Or you can leave this, I can chnage this in my PR.

Copy link
Member

@zhangxiang1993 zhangxiang1993 left a comment

Choose a reason for hiding this comment

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

:shipit:

const message = typeof error === 'string' ? error : (`${error.stack ? `${error.stack}: ` : ''}${error.message}`);
log.error(message)
private logError = (error: string | Error | Error[]) => {
const toString = (error: string | Error) => typeof error === 'string' ? error : (`${error.stack ? `${error.stack}: ` : ''}${error.message}`);
Copy link
Member

@zhangxiang1993 zhangxiang1993 Mar 2, 2020

Choose a reason for hiding this comment

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

TSLint would complain shadowing variable here.

@tiagoshibata tiagoshibata merged commit 3d45eac into master Mar 2, 2020
@martinb35 martinb35 deleted the user/ticastro/fix-build-lockfile branch June 21, 2021 19:02
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

Successfully merging this pull request may close these issues.

2 participants