[Debian-iot-maintainers] Bug#997718: glewlwyd: FTBFS: Module not found: Error: Can't resolve 'cross-fetch' in '/<<PKGBUILDDIR>>/webapp-src/node_modules/i18next-http-backend/cjs'

Lucas Nussbaum lucas at debian.org
Sun Oct 24 12:35:11 BST 2021


Source: glewlwyd
Version: 2.5.2-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> # Build webapp
> cp -RL /usr/share/nodejs webapp-src/node_modules || true
> cp -RL /usr/lib/nodejs/* webapp-src/node_modules/ || true
> (cd webapp-src && webpack --config webpack.config.js)
> Hash: a8dcd07a19fb3af83c81
> Version: webpack 4.43.0
> Time: 29020ms
> Built at: 10/23/2021 7:31:30 AM
>  6 assets
> Entrypoint admin = vendors~admin~callback~login~profile.js admin.js
> Entrypoint login = vendors~admin~callback~login~profile.js login.js
> Entrypoint profile = vendors~admin~callback~login~profile.js vendors~profile.js profile.js
> Entrypoint callback = vendors~admin~callback~login~profile.js callback.js
>  [1] ./node_modules/i18next/dist/esm/i18next.js + 13 modules 98.8 KiB {0} [built]
>      |    14 modules
>  [2] ./src/lib/MessageDispatcher.js 1.67 KiB {1} {2} {3} {4} [built]
>  [3] ./src/lib/APIManager.js 3.08 KiB {1} {2} {3} {4} [built]
>  [4] ./src/lib/Notification.js 7.63 KiB {1} {3} {4} [built]
>  [8] ./src/lib/ErrorConfig.js 3.51 KiB {1} {2} {3} {4} [built]
>  [9] ./src/Modal/Message.js 5.76 KiB {1} {3} {4} [built]
> [12] (webpack)/buildin/global.js 472 bytes {1} {2} {3} {4} [built]
> [13] ./src/Modal/Confirm.js 5.57 KiB {1} {4} [built]
> [23] ./src/admin.js + 30 modules 1010 KiB {1} [built]
>      | ./src/admin.js 2.11 KiB [built]
>      | ./src/Admin/App.js 87.2 KiB [built]
>      | ./src/Modal/EditRecord.js 48.6 KiB [built]
>      | ./src/Admin/Navbar.js 19.6 KiB [built]
>      | ./src/Admin/Users.js 18.1 KiB [built]
>      | ./src/Admin/Clients.js 15.4 KiB [built]
>      | ./src/Admin/Scopes.js 14.6 KiB [built]
>      | ./src/Admin/UserMod.js 14.3 KiB [built]
>      | ./src/Admin/ClientMod.js 14.4 KiB [built]
>      | ./src/Admin/SchemeMod.js 12.5 KiB [built]
>      | ./src/Admin/Plugin.js 12.5 KiB [built]
>      | ./src/Admin/ScopeEdit.js 22.1 KiB [built]
>      | ./src/Admin/ModEdit.js 21.8 KiB [built]
>      | ./src/Admin/PluginEdit.js 14.8 KiB [built]
>      | ./src/Admin/APIKey.js 14.7 KiB [built]
>      |     + 16 hidden modules
> [24] ./src/login.js + 20 modules 205 KiB {3} [built]
>      | ./src/login.js 2.6 KiB [built]
>      | ./src/Login/App.js 30.1 KiB [built]
>      | ./src/Login/Buttons.js 19 KiB [built]
>      | ./src/Login/Body.js 7.62 KiB [built]
>      | ./src/Login/PasswordForm.js 8.47 KiB [built]
>      | ./src/Login/NoPasswordForm.js 10.9 KiB [built]
>      | ./src/Login/SelectAccount.js 10.8 KiB [built]
>      | ./src/Login/EndSession.js 6.32 KiB [built]
>      | ./src/Login/SessionClosed.js 4.63 KiB [built]
>      | ./src/Login/DeviceAuth.js 8.84 KiB [built]
>      | ./src/Login/ResetCredentials.js 10.6 KiB [built]
>      | ./src/Login/GrantScope.js 16.7 KiB [built]
>      | ./src/Login/scheme/MockSchemeForm.js 9.97 KiB [built]
>      | ./src/Login/scheme/EmailSchemeForm.js 8.28 KiB [built]
>      | ./src/Login/scheme/WebauthnForm.js 10.1 KiB [built]
>      |     + 6 hidden modules
> [25] ./src/profile.js + 15 modules 290 KiB {4} [built]
>      | ./src/profile.js 2.77 KiB [built]
>      | ./src/Profile/App.js 34.4 KiB [built]
>      | ./src/Profile/Navbar.js 20.9 KiB [built]
>      | ./src/Profile/User.js 31.3 KiB [built]
>      | ./src/Profile/UserDelegate.js 4.03 KiB [built]
>      | ./src/Profile/UserResetCredentials.js 11.6 KiB [built]
>      | ./src/Profile/Register.js 40.5 KiB [built]
>      | ./src/Profile/Session.js 18.2 KiB [built]
>      | ./src/Profile/Password.js 25.8 KiB [built]
>      | ./src/Profile/SchemePage.js 5.86 KiB [built]
>      | ./src/Modal/Edit.js 6.42 KiB [built]
>      | ./src/Profile/SchemeMock.js 7.72 KiB [built]
>      | ./src/Profile/SchemeWebauthn.js 28.6 KiB [built]
>      | ./src/Profile/SchemeOTP.js 18.7 KiB [built]
>      | ./src/Profile/SchemeCertificate.js 22.2 KiB [built]
>      |     + 1 hidden module
> [26] ./src/callback.js + 1 modules 14.6 KiB {2} [built]
>      | ./src/callback.js 4.07 KiB [built]
>      | ./src/Callback/App.js 10.5 KiB [built]
>     + 15 hidden modules
> 
> ERROR in ./node_modules/i18next-http-backend/cjs/getFetch.js
> Module not found: Error: Can't resolve 'cross-fetch' in '/<<PKGBUILDDIR>>/webapp-src/node_modules/i18next-http-backend/cjs'
>  @ ./node_modules/i18next-http-backend/cjs/getFetch.js 11:22-44
>  @ ./node_modules/i18next-http-backend/cjs/request.js
>  @ ./node_modules/i18next-http-backend/cjs/index.js
>  @ ./src/admin.js
> make[1]: *** [debian/rules:32: override_dh_auto_build-indep] Error 2


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/glewlwyd_2.5.2-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Debian-iot-maintainers mailing list