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 Errors When Building from source #7936

Closed
wants to merge 2 commits into from

Conversation

ChaseKnowlden
Copy link
Contributor

For #7935

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).

@ChaseKnowlden ChaseKnowlden requested a review from a team as a code owner October 14, 2021 21:17
@DonJayamanne
Copy link
Contributor

Weird, i'm not running into any issues, no issues on CI either.

@@ -24,7 +24,8 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"useUnknownInCatchVariables": false
"useUnknownInCatchVariables": false,
"skipLibCheck": true
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah we really don't want to do this. This skips all type checking. What errors are you getting?

Copy link
Member

Choose a reason for hiding this comment

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

@DonJayamanne @rchiodo this issue was logged here (I was just taking a peek at it myself at the end of the day on Thursday) #7935. I can actually repro it with npm run build-ipywidgets and you can see the error.

I checked on the Jupyterlab gitter and it looks like it's introduced with TypeScript 4.4. I agree that we don't want to just skipLibCheck though.

Copy link
Member

Choose a reason for hiding this comment

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

Might be the removal of ClientRect in 4.4? microsoft/TypeScript-DOM-lib-generator#1029 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

Weird I'm not running into this, let me delete everything and try again. I used to get these but not anymore.
Please ensure your address using the right version of node 14.16.0 and npm 6.

Copy link
Member

Choose a reason for hiding this comment

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

I'll check my versions, but the issue (to me) didn't look node specific.

Here is JupyterLab (in progress) updating it for 4.4 support. jupyterlab/jupyterlab@ce2b2be

Copy link
Member

Choose a reason for hiding this comment

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

@DonJayamanne does the npm run command that I showed not repro it for you?

Copy link
Member

Choose a reason for hiding this comment

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

I created a new PR here that I think has the more specific fixup that we need. Added thanks to ChaseKnowlden in that PR for finding the issue and getting the fix rolling.

Copy link
Member

Choose a reason for hiding this comment

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

@DonJayamanne
Copy link
Contributor

Closing this PR as th eoriginal issue has been resolved

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.

4 participants