Migrating to Vaadin 19 not going so well

Hi.
I had a project in Vaadin 14.

I tried to upgrade it to v19.

So, I updated my pom.xml with 19.0.2 version, Vaadin server at 8.12.4 and Spring Boot at 2.4.4.

I also moved to npmp by updating my application.properties file.

I installed npmp.

My node version is v14.16.0 and npm is 7.8.0

I removed node, node_modules and target folders and also package.json, .npmrc, pnpm-lock.yaml, pnpmfile.js, tsconfig.json, types.d.ts and wedpack.*.js files.

After that, when I try a mvn clean package, I get the following error :

[INFO]
 Running webpack ...
E:\dev\projets\java\livraison\node_modules\.pnpm\webpack-cli@3.3.11_webpack@4.46.0\node_modules\webpack-cli\bin\cli.js:93
				throw err;
				^
Error: No valid exports main found for 'E:\dev\projets\java\livraison\node_modules\.pnpm\@rollup\plugin-replace@2.4.2_rollup@1.32.1\node_modules\@rollup\pluginutils'
    at resolveExportsTarget (internal/modules/cjs/loader.js:611:9)
    at applyExports (internal/modules/cjs/loader.js:492:14)
    at resolveExports (internal/modules/cjs/loader.js:541:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:643:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:941:27)
    at Function.Module._load (internal/modules/cjs/loader.js:847:27)
    at Module.require (internal/modules/cjs/loader.js:1016:19)
    at require (E:\dev\projets\java\livraison\node_modules\.pnpm\v8-compile-cache@2.0.3\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at Object.<anonymous> (E:\dev\projets\java\livraison\node_modules\.pnpm\@rollup\plugin-replace@2.4.2_rollup@1.32.1\node_modules\@rollup\plugin-replace\dist\rollup-plugin-replace.cjs.js:4:19)
    at Module._compile (E:\dev\projets\java\livraison\node_modules\.pnpm\v8-compile-cache@2.0.3\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:10)
    at Module.load (internal/modules/cjs/loader.js:976:32)
    at Function.Module._load (internal/modules/cjs/loader.js:884:14)
    at Module.require (internal/modules/cjs/loader.js:1016:19)
    at require (E:\dev\projets\java\livraison\node_modules\.pnpm\v8-compile-cache@2.0.3\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at Object.<anonymous> (E:\dev\projets\java\livraison\node_modules\.pnpm\workbox-build@5.1.4\node_modules\workbox-build\build\lib\bundle.js:30:17)
    at Module._compile (E:\dev\projets\java\livraison\node_modules\.pnpm\v8-compile-cache@2.0.3\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:10)
    at Module.load (internal/modules/cjs/loader.js:976:32)
    at Function.Module._load (internal/modules/cjs/loader.js:884:14)
    at Module.require (internal/modules/cjs/loader.js:1016:19)
    at require (E:\dev\projets\java\livraison\node_modules\.pnpm\v8-compile-cache@2.0.3\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at Object.<anonymous> (E:\dev\projets\java\livraison\node_modules\.pnpm\workbox-webpack-plugin@5.1.4_webpack@4.46.0\node_modules\workbox-webpack-plugin\build\generate-sw.js:14:16)
    at Module._compile (E:\dev\projets\java\livraison\node_modules\.pnpm\v8-compile-cache@2.0.3\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:10)
    at Module.load (internal/modules/cjs/loader.js:976:32)
    at Function.Module._load (internal/modules/cjs/loader.js:884:14)
    at Module.require (internal/modules/cjs/loader.js:1016:19)
    at require (E:\dev\projets\java\livraison\node_modules\.pnpm\v8-compile-cache@2.0.3\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)
    at Object.<anonymous> (E:\dev\projets\java\livraison\node_modules\.pnpm\workbox-webpack-plugin@5.1.4_webpack@4.46.0\node_modules\workbox-webpack-plugin\build\index.js:10:20) {
  code: 'MODULE_NOT_FOUND'

Why, oh why isn’t it working ?

Can anybody help me with that please ?

Thanks

Hi.

Have you added Rollup to the project or are you using the latest Designer?

The exception might point to a corrupted cache so this might be fixed by removing ~/.pnpm-store and the node_modules folder in the project.