This fails with the following error:
$ tsc --emitDeclarationOnly
$ cross-env NODE_ENV=production webpack -p --progress --bail --mode production
27% building 116/158 modules 42 active ...git/node_modules/babel-loader/lib/index.js??ref--4!/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/stores/RightPanelStorePhases.jsModuleNotFoundError: Module not found: Error: Can't resolve './component-index' in '/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src'
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/Compilation.js:925:10
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/NormalModuleFactory.js:401:22
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/NormalModuleFactory.js:130:21
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/NormalModuleFactory.js:224:22
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/neo-async/async.js:2830:7
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/neo-async/async.js:6877:13
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/NormalModuleFactory.js:214:25
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:213:14
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/DirectoryExistsPlugin.js:27:15
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:85:15
at processTicksAndRejections (internal/process/task_queues.js:79:11)
resolve './component-index' in '/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src'
using description file: /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/package.json (relative path: ./src)
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
using description file: /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/package.json (relative path: ./src/component-index)
no extension
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index doesn't exist
.js
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index.js doesn't exist
.json
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index.json doesn't exist
.ts
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index.ts doesn't exist
as directory
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index doesn't exist
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
==> ERROR: A failure occurred in build().
Aborting...
Can you update the PKGBUILD accordingly?
Pinned Comments