'File not found on linux build machine because of case

My angular app uses some npm packages. These packages contain some imports to case-sensitive file names.

For example:

I'm importing something from the @lib:

import { something} from '@lib';

And in something (which is a module in an npm package), there is an import to another module:

import { subModule } from './subModule';

Because of the case of subModule, it throws that module is not found.

Is there a way to fix it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source