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

Tech: upgrade esbuild, remove watch option from options #21727

Merged
merged 4 commits into from
Mar 23, 2023

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Mar 22, 2023

When I try to start yarn storybook:ui in code it fails with:

Screenshot 2023-03-22 at 13 34 14
Screenshot 2023-03-22 at 13 35 40
Screenshot 2023-03-22 at 13 50 37

It seems like vite is using esbuild 0.17 and we were using esbuild 0.16, and this was causing issues during local development.

I am attempting to fix.

I regenerated the lockfile, this did not help
I tried upgrading esbuild to 0.17, this solved the issue.

It seems like vite is now slower and is logging a lot:
(I didn't touch/change any files as it started)

Screenshot 2023-03-22 at 14 05 49
Screenshot 2023-03-22 at 14 06 01

@ndelangen ndelangen self-assigned this Mar 22, 2023
@ndelangen ndelangen added the maintenance User-facing maintenance tasks label Mar 22, 2023
@ndelangen ndelangen force-pushed the norbert/fix-ui-storybook-dev-upgrade-esbuild branch from 8521493 to f86cdff Compare March 22, 2023 13:09
@socket-security
Copy link

socket-security bot commented Mar 22, 2023

Socket Security Pull Request Report

Dependency issues detected: If you merge this pull request, you will not be alerted to the instances of these issues again.

😵‍💫 Bin script confusion

This package has multiple bin scripts with the same name. This can cause non-deterministic behavior when installing or could be a sign of a supply chain attack

Consider removing one of the conflicting packages. Packages should only export bin scripts with their name

Package Bin script Source
esbuild@0.17.12 (added) esbuild code/package.json via esbuild-loader@3.0.1, code/lib/core-common/package.json via esbuild-register@3.4.2, scripts/package.json via tsup@6.7.0
esbuild@0.17.8 (added) esbuild code/package.json via @storybook/addon-storyshots@6.5.16, @storybook/addon-storyshots-puppeteer@6.5.16, @storybook/angular@6.5.16, code/addons/storyshots-core/package.json via @storybook/angular@7.0.0-rc.6, jest-preset-angular@13.0.1, code/addons/storyshots-puppeteer/package.json via @storybook/addon-storyshots@7.0.0-rc.6, code/frameworks/angular/package.json via @angular-devkit/build-angular@15.2.4, jest-preset-angular@12.2.6
esbuild-wasm@0.17.8 (added) esbuild code/package.json via @storybook/addon-storyshots@6.5.16, @storybook/addon-storyshots-puppeteer@6.5.16, @storybook/angular@6.5.16, code/addons/storyshots-core/package.json via @storybook/angular@7.0.0-rc.6, jest-preset-angular@13.0.1, code/addons/storyshots-puppeteer/package.json via @storybook/addon-storyshots@7.0.0-rc.6, code/frameworks/angular/package.json via @angular-devkit/build-angular@15.2.4, jest-preset-angular@12.2.6
Pull request report summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script confusion ⚠️ 3 issues
Bin script shell injection ✅ 0 issues
Shell access ✅ 0 issues
Uses eval ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
GitHub dependency ✅ 0 issues
New author ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues
AI detected malware ✅ 0 issues
Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore esbuild@0.17.12
  • @SocketSecurity ignore esbuild@0.17.8
  • @SocketSecurity ignore esbuild-wasm@0.17.8

Powered by socket.dev

@ndelangen
Copy link
Member Author

When i start a sandbox, it doesn't give this long list of HRM updates and warnings about new dependencies optimised.

I noticed 1, and added that to the array.

@IanVS
Copy link
Member

IanVS commented Mar 22, 2023

When i start a sandbox, it doesn't give this long list of HRM updates and warnings about new dependencies optimised.

How did you trigger that above? Was it during a re-compile or something? Are you saying it's not an issue now?

@ndelangen
Copy link
Member Author

@IanVS I triggered it by running yarn storybook:ui in the code dir.

It's the storybook UI's storybook.
So not a sandbox.

@ndelangen ndelangen added the core label Mar 23, 2023
@ndelangen ndelangen added the ci:daily Run the CI jobs that normally run in the daily job. label Mar 23, 2023
@ndelangen
Copy link
Member Author

@shilman I'm going to merge this then, as this seems the best way forwards.

@ndelangen ndelangen merged commit 4a37372 into next Mar 23, 2023
@ndelangen ndelangen deleted the norbert/fix-ui-storybook-dev-upgrade-esbuild branch March 23, 2023 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:daily Run the CI jobs that normally run in the daily job. core maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants