What I’m currently running into is this:
I’ve got a /client
folder, a /server
folder and a /common
folder in my root folder.
It should be obvious as to what goes where - strictly client stuff goes into the /client
folder, server stuff into the server one and things like collections and (some) methods go into the common folder.
However, when I then try to do a import {foo} from '../common/collections'
in /server/main.js
I get a file not found
error on the server side.