Skip to content

chore(website): fix playground #5575

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

Merged
merged 1 commit into from
Aug 31, 2022
Merged

chore(website): fix playground #5575

merged 1 commit into from
Aug 31, 2022

Conversation

bradzacher
Copy link
Member

@bradzacher bradzacher commented Aug 30, 2022

PR Checklist

Overview

There's a lot of unrelated changes in here - it took me a while to really nail down exactly what the problem was. I spent a chunk of time just figuring out how everything worked.

I still don't know why it occurred, but for some reason when we upgraded to TS4.8 the website-eslint build started including a dependency that required os and stream (nodejs modules). Because rollup can't bundle nodejs modules - it assumed they'd be provided later, which they weren't - leading to unresolved imports that (I think) monaco attempted to resolve by loading a script from the server.

Result of testing with this PR locally:
image

@bradzacher bradzacher added the bug Something isn't working label Aug 30, 2022
@nx-cloud
Copy link

nx-cloud bot commented Aug 30, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 8026e77. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 47 targets

Sent with 💌 from NxCloud.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @bradzacher!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@netlify
Copy link

netlify bot commented Aug 30, 2022

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 8026e77
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/630eefd05dcd9100087cc962
😎 Deploy Preview https://deploy-preview-5575--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Aug 30, 2022

Codecov Report

Merging #5575 (8026e77) into main (27b24e3) will increase coverage by 0.02%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5575      +/-   ##
==========================================
+ Coverage   91.60%   91.62%   +0.02%     
==========================================
  Files         369      134     -235     
  Lines       12393     1505   -10888     
  Branches     3613      226    -3387     
==========================================
- Hits        11352     1379    -9973     
+ Misses        685       62     -623     
+ Partials      356       64     -292     
Flag Coverage Δ
unittest 91.62% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ges/eslint-plugin/src/rules/no-extraneous-class.ts
packages/eslint-plugin/src/rules/comma-dangle.ts
packages/eslint-plugin/src/rules/unbound-method.ts
packages/utils/src/ast-utils/index.ts
packages/eslint-plugin/src/rules/await-thenable.ts
...nt-plugin/src/rules/switch-exhaustiveness-check.ts
packages/utils/src/ast-utils/eslint-utils/index.ts
...ript-estree/src/create-program/createSourceFile.ts
packages/eslint-plugin/src/rules/array-type.ts
...plugin/src/rules/naming-convention-utils/shared.ts
... and 225 more

@bradzacher bradzacher force-pushed the 5572-fix-playground branch from b1cd0b7 to 8026e77 Compare August 31, 2022 05:21
@bradzacher bradzacher marked this pull request as ready for review August 31, 2022 05:30
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Just use Rollup, they said. It won't require configuration, they said!

@bradzacher bradzacher merged commit f7c5deb into main Aug 31, 2022
@bradzacher bradzacher deleted the 5572-fix-playground branch August 31, 2022 05:35
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Website: Playground failing to load
2 participants