-
Notifications
You must be signed in to change notification settings - Fork 279
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
build: use vite for live-reload mode in @penrose/panels
and @penrose/browser-ui
#929
Conversation
Deploying with Cloudflare Pages
|
Codecov Report
@@ Coverage Diff @@
## main #929 +/- ##
==========================================
+ Coverage 68.15% 69.66% +1.51%
==========================================
Files 62 62
Lines 8123 8371 +248
Branches 1771 1828 +57
==========================================
+ Hits 5536 5832 +296
+ Misses 2580 2532 -48
Partials 7 7
Continue to review full report at Codecov.
|
@penrose/panels
and @penrose/browser-ui
@penrose/panels
and @penrose/browser-ui
Sure, I'll see if I can do that this evening. |
Update: Related issue: vitejs/vite#5963 I tried using |
Tested on Linux just now and this does indeed fix the |
This fix didn't work for me on: Ubuntu 20.04. With yarn and node versions: agarciafdz@agarciafd-lg:~/r/gh/penrose/penrose$ yarn --version
1.22.15
agarciafdz@agarciafd-lg:~/r/gh/penrose/penrose$ node --version
v17.4.0 The error: @penrose/browser-ui: ✘ [ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "@penrose/core". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "@penrose/core". The package may have incorrect main/module/exports specified in its package.json. Complete installaition log is attached. |
@elviejo79 Thanks for pointing this out! I was able to reproduce. This happens if you run @wodeni It seems bad that |
Yep, can confirm. I added a Also, thanks @elviejo79 for helping! |
Fixed by adding node polyfills in |
Description
Resolves #913; see also #552
As reported in #913,
serve-http
causes errors on Linux because it uses Node'swatch
function. We useserve-http
for the estrella live-watch mode and unfortunately it's not actively maintained. Since we've already transitionedsynthesizer-ui
to vite, it makes more sense for us to use it forpanels
andbrowser-ui
.Implementation strategy and design decisions
Examples with steps to reproduce them
yarn start
forbrowser-ui
yarn start:ide
forpanels
Checklist
diagrams/
folderOpen questions
vite build
to work :(.