I can't import modules that are parent to the main index.js, so the following don't work:
import other from './other.js';
import parnt from '../parent.js'; // <-- can't do this
console.log('indexjs' + other() + parnt());
I have JS code that's shared amongst 2 projects so I put the code in the parent folder.
My workaround now is to symbolic link the parent folder with all the shared code to each of the project folder.
I can't import modules that are parent to the main index.js, so the following don't work:
I have JS code that's shared amongst 2 projects so I put the code in the parent folder.
My workaround now is to symbolic link the parent folder with all the shared code to each of the project folder.