Can't start project on a different system: Module not found?!?

I copied my entire Vaadin application (as Eclipse & Maven project) over to a different system.

Compilation and application startup work OK, but as soon as I try to connect with the browser (which triggers the frontend compilation) I am stuck with:

Module not found: Error: Can't resolve 'cookieconsent/build/cookieconsent.min.js'

I re-ran a “npm install” in the root directory of the project but that didn’t help.

Since I don’t have much of a clue what’s going off here under the hood I have no idea what and how to fix this. What am I missing here? Any help appreciated!

Full log:

------------------ Starting Frontend compilation. ------------------
e[0me[34mie[39m e[90m?wds?e[39m: Project is running at http://localhost:56540/webpack-dev-server/
e[34mie[39m e[90m?wds?e[39m: webpack output is served from /VAADIN/
e[34mie[39m e[90m?wds?e[39m: Content not from webpack is served from U:\Documents\eclipse\workspace_Vaadin\TestApp\target\classes\META-INF\VAADIN, src/main/webapp
i ?atl?: Using typescript@4.0.3 from typescript
i ?atl?: Using tsconfig.json from U:/Documents/eclipse/workspace_Vaadin/TestApp/tsconfig.json
i ?atl?: Checking started in a separate process...
i ?atl?: Time: 1098ms
         Serving the 'stats.json' file dynamically.
e[31m×e[39m e[90m?wdm?e[39m: Hash: 37dc8e018fa33cfcef7c
Version: webpack 4.42.0
Time: 9690ms
Built at: 08/02/2021 18:45:15
                                                  Asset      Size        Chunks                                Chunk Names
           build/vaadin-0-d307f72adae69693680b.cache.js  16.7 MiB             0  [emitted]
           build/vaadin-1-f980c2feeb9a1aff3fe8.cache.js   397 KiB             1  [emitted]
           build/vaadin-2-25cd85c3b420560f3de5.cache.js  21.7 KiB             2  [emitted]
           build/vaadin-3-9c3f862cc97ee9287c3c.cache.js   344 KiB             3  [emitted]
      build/vaadin-bundle-8340032f378b59477ffc.cache.js   286 KiB        bundle  [emitted]
build/vaadin-devmodeGizmo-ab0c65ccc111fa465397.cache.js   451 KiB  devmodeGizmo  [emitted]
                                             index.html  1.08 KiB                [emitted]
Entrypoint bundle = build/vaadin-bundle-8340032f378b59477ffc.cache.js
Entrypoint devmodeGizmo = build/vaadin-devmodeGizmo-ab0c65ccc111fa465397.cache.js
 5.5 KiB {0} [built]

 59.3 KiB {0} [built]

 90.7 KiB {bundle} [built]

 78 bytes {0} [built]

 81 bytes {0} [built]

 87 bytes {0} [built]

 234 bytes {0} [built]

 73 bytes {0} [built]

 86 bytes {0} [built]

 78 bytes {0} [built]

 8.62 KiB {devmodeGizmo} {0} [built]

 12.6 KiB {bundle} [built]

 36.8 KiB {devmodeGizmo} [built]

 6.94 KiB {1} [built]

 1.46 KiB {bundle} [built]

    + 568 hidden modules

ERROR in ../node_modules/.pnpm/
Module not found: Error: Can't resolve 'cookieconsent/build/cookieconsent.min.js' in 'U:\Documents\eclipse\workspace_Vaadin\TestApp\node_modules\.pnpm\\@vaadin\vaadin-cookie-consent\1.2.0\node_modules\@vaadin\vaadin-cookie-consent\src'
 @ ../node_modules/.pnpm/ 14:0-50
 @ ../node_modules/.pnpm/
 @ ../target/frontend/generated-flow-imports.js
 @ ../target/index.ts
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
 1.13 KiB {0} [built]

 530 KiB {0} [built]

 472 bytes {0} [built]

 497 bytes {0} [built]

e[34mie[39m e[90m?wdm?e[39m: Failed to compile.
------------------ Frontend compilation failed. ------------------

Fixed by deleting the entire node_modules folder and rebuilding.