import { Mongo } from "meteor/mongo";
export const Lists = new Mongo.Collection("lists");
I’ve tried “meteor npm install webpack-meteor-externals --save-dev” from: https://github.com/ardatan/meteor-webpack
and amended my “cypress/plugins/index.js” file (where webpack options can be put in without having to create a webpack.config.js file) with
but then I get an error that Package in ““module.exports = Package[‘mongo’];”” cannot be found. I tried tracking down where Package was defined but no luck.
This causes the error: Module not found: Error: Can't resolve 'meteor/meteor' in '.../tests/cypress/support' resolve 'meteor/meteor' in '.../tests/cypress/support'
Trying to figure out how to fix it…
For now, I am using this workaround for this particular scenario but it isn’t ideal and will not work for others: