[BUG] Vaadin 14.5.1 pnpm enabled does not build correctly
See original GitHub issueDescribe the bug
Running vaadin 14.5.1 with pnpm
enabled makes styles and components disappear.
To Reproduce Steps to reproduce the behavior:
- Download app with vaadin 14.5.1 from vaadin starter
- Add
vaadin.pnpm.enable = true
toapplication.properties
- Delete
package.json
andpackage.json.lock
- Run application
- Open http://localhost:8080 in browser
Expected behavior
Application looks as run with vaadin.pnpm.enable = false
.
Screenshots
Not working (pnpm.enable = true)
Working (pnpm.enable = false)
Desktop (please complete the following information):
- OS: Linux
- Browser: Firefox, Chrome
- Version: latest
- Vaadin platform version: 14.5.1
Additional context Same happened with vaadin gradle plugin.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Vaadin 14 - Troubleshooting - Martin Vysny
When using pnpm, performing the Vaadin Dance may not be enough. The thing with pnpm is that it manages a cache of downloaded...
Read more >npm/pnpm | Configuration | Flow | Vaadin 14 Docs
pnpm reduces the download time across multiple projects by caching the downloaded packages. While npm is the recommended and default package ...
Read more >Can't switch to pnpm for Vaadin15 | Vaadin
Set property pnpmEnable to the vaadin-maven-plugin . Try to run mvn -Pproduction clean package. First stage (install) working fine with pnpm ...
Read more >npm/pnpm | Configuration | Vaadin Docs
Configuring the front-end package manager. ... npm is the recommended and default package manager for Vaadin projects. Install a Custom Package.
Read more >What's new in Vaadin 14? | Vaadin
This means that server startup is no longer blocked by the frontend ... Faster build: pnpm only downloads packages once and reuses them...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Looks like it doesn’t reproduce. Just add a line with
sed -i "s/\"14\.5\.1\"/\"14\.5\.2\"/g" base-starter-spring-gradle/build.gradle
after thegit clone…
in above script.Now:

Before:

Thank you.
OK below is my reproducer.
./gradlew bootRun
It doesn’t look too weird but notification is not working.
To see a working version, delete the ./base-starter-spring-gradle (might require sudo…), and change the line with
echo 'vaadin.pnpm.enable = true' >> …
toecho 'vaadin.pnpm.enable = false' >> …
.