I have gone through .meteor/packages
and specified each version using my old commited .meteor/version
to get the version of the working app then removed the .meteor/local
folder to make sure nothing was lingering. I then restarted the app locally compared the old .meteor/versions
to the newly generated one, and they are identical. But I am still getting the error.
The only thing “upgraded” at this point is node itself (using v5.7.1, pulled from brew) and mup, using the latest from here. I seriously don’t think it’s mup, as it’s an external build tool. Maybe the node update is causing some issues?
Here are the logs I am getting:
W20160522-10:30:31.918(-4)? (STDERR)
W20160522-10:30:31.921(-4)? (STDERR) /Users/XXX/.meteor/packages/meteor-tool/.1.1.10.j0nmqv++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20160522-10:30:31.921(-4)? (STDERR) throw(ex);
W20160522-10:30:31.921(-4)? (STDERR) ^
W20160522-10:30:31.922(-4)? (STDERR) ReferenceError: Attachments is not defined
=> Exited with code: 8
Attachments is defined in /both/collections/attachments.js
as such:
var Attachments = new FS.Collection('attachments', {
stores: [
new FS.Store.FileSystem('attachments', {
path: '~/assignments_app/attachments',
filter: {
maxSize: 10485760,
allow: {
contentTypes:
['image/*', 'application/pdf', 'application/msword',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
extensions: ['png', 'jpg', 'gif', 'doc', 'docx', 'pdf']
},
deny: {
contentTypes:
['application/x-msdownload'],
extensions: ['exe', 'bat']
}
}
}),
new FS.Store.FileSystem('thumbs', {
path: '~/assignments_app/thumbs',
beforeWrite: function(fileObj) {
// We return an object, which will change the
// filename extension and type for this store only.
return {
extension: 'png',
type: 'image/png'
};
},
transformWrite: function(fileObj, readStream, writeStream) {
// Transform the image into a 10x10px PNG thumbnail
gm(readStream).resize(60).stream('PNG').pipe(writeStream);
// The new file size will be automatically detected and set for this store
}
}),
new FS.Store.FileSystem('preview', {
path: '~/assignments_app/preview',
beforeWrite: function(fileObj) {
// We return an object, which will change the
// filename extension and type for this store only.
return {
extension: 'png',
type: 'image/png'
};
},
transformWrite: function(fileObj, readStream, writeStream) {
// Transform the image into a 300x300px PNG thumbnail
gm(readStream).resize('600','600').stream('PNG').pipe(writeStream);
// The new file size will be automatically detected and set for this store
}
})]
});