diff --git a/src/webpack/ionic-environment-plugin.ts b/src/webpack/ionic-environment-plugin.ts index d773b5bd..a0f2c148 100644 --- a/src/webpack/ionic-environment-plugin.ts +++ b/src/webpack/ionic-environment-plugin.ts @@ -87,7 +87,9 @@ export function convertDeepLinkConfigToWebpackFormat(parsedDeepLinkConfigs: Hydr parsedDeepLinkConfigs = []; } parsedDeepLinkConfigs.forEach(parsedDeepLinkConfig => { - dictionary[parsedDeepLinkConfig.modulePath] = parsedDeepLinkConfig.absolutePath; + if (parsedDeepLinkConfig.modulePath && parsedDeepLinkConfig.absolutePath) { + dictionary[parsedDeepLinkConfig.modulePath] = parsedDeepLinkConfig.absolutePath; + } }); return dictionary; }