Cannot find module items.js


#1

I’m getting the following error:

Error: Cannot find module '../imports/api/items.js'

I can’t seem to find any reference to items.js in any of my code, though in my original test codebase there was this file. If I add a blank items.js file to that directory, the error goes away. As I can’t find any reference to this file in any of my .js files, am I to assume this error is related to items.js being requisite to Meteor, or that there may be a caching issue, or that I’m just stupid and despite my best efforts to find the import of items.js, I’ve just missed it?


#2

Ooooh. I figured this out. It’s a bad reference in server/main.js.

I was missing the import. My bad.