You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are encountering an issue with module import paths that behave differently in our development and production environments. This inconsistency affects the reliability of our deployment process and could potentially lead to runtime errors.
Issue Details:
When using absolute import statements such as: from backend.batch.utilities.helpers.EnvHelper import EnvHelper
the application functions correctly in the local development environment. However, in the production environment, the same path causes import errors, and the system requires a relative import path, like: from ..helpers.EnvHelper import EnvHelper
Tasks:
Determine why absolute paths fail in the production environment but work in development.
Implement a solution that supports both absolute and relative import paths in all environments, thereby standardizing our codebase and deployment process.
The text was updated successfully, but these errors were encountered:
komalg1
changed the title
Absolute import module path breaks when solution is deployed
Resolve Inconsistency with Import Paths Between Development and Production Environments
May 7, 2024
komalg1
changed the title
Resolve Inconsistency with Import Paths Between Development and Production Environments
Resolve inconsistency with import paths between development and production environments
May 7, 2024
As per the discussion with @adamdougal , we will continue to investigate on this issue and will see if any solution arise in the future that supports both absolute and relative import paths in all environments, will keep this issue open and update in case if any solutions found. FYI @Roopan-Microsoft
We are encountering an issue with module import paths that behave differently in our development and production environments. This inconsistency affects the reliability of our deployment process and could potentially lead to runtime errors.
Issue Details:
When using absolute import statements such as:
from backend.batch.utilities.helpers.EnvHelper import EnvHelper
the application functions correctly in the local development environment. However, in the production environment, the same path causes import errors, and the system requires a relative import path, like:
from ..helpers.EnvHelper import EnvHelper
Tasks:
The text was updated successfully, but these errors were encountered: