Eslint code style error with meteor/mongo

I’ve running ESlint code styling as per the recomendations in the meteor docs and I’m getting an error with import { Mongo } from 'meteor/mongo';. The error is.

Unable to resolve path to module ‘meteor/mongo’.

This was flagged in the meteor docs, in the chat area, however, I couldn’t find the solution. How do I resolve this?

Hey @bp123 are you using @meteorjs/eslint-config-meteor? If not I’d recommend so, otherwise you’re likely missing this: https://www.npmjs.com/package/eslint-import-resolver-meteor

1 Like

Also, the Meteor Guide has clear instructions for setting up ESLint with Meteor.

1 Like