Trying to do something relatively simple. I've 2 LWC component under the lwc folder: lwc/cmp1 and lwc/cmp2
How can I create a new ES6 module that will serve as a utils.js file and then import it to each of cmp1 and cmp2?
I tried creating the utils.js file on cmp1 folder but couldn't import it to cmp2. Tried creating a new folder under lwc folder but it still didn't work (can't import).
The error I keep on getting is:
force-app/main/default/lwc/utils/utils.js LWC1011: Failed to resolve import "../utils/utils" from "cmp1.js". Please add "../utils/utils" file to the component folder.
There is no problem with the path given, VSCode easily find the related path and indicates no errors, only when trying to deploy to Salesforce