A
A
Al2017-02-08 18:16:15
linux
Al, 2017-02-08 18:16:15

How to avoid conflicting paths to packages containing camelCase?

For example, there is a file called advJob.js
This is how it is connected:

const AdvJob = require('application/src/custom/cronJobs/adv/advJob');

In Windows it works fine, in Linux (I have Ubuntu) the node (6.9.5) says cannot find module....
And there are a lot of such conflicts in the project, what should I do? renaming and rewriting everything is not an option!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Tyuvaev, 2017-02-08
@CulHatsker

Rename or rewrite everything is the only correct option, it just needs to be done automatically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question