(I think I probably need to add a package here, but idk which one) I’m trying to create a Build Plugin, but every time I add a package from atmosphere (in my case meteorhacks:inject-initial@1.0.3
this error is thrown:
=> Modified -- restarting.
=> Errors prevented startup:
While loading plugin `cloudfront` from package `cloudfront`:
packages/meteor/startup_server.js:2:1: __meteor_bootstrap__ is not defined
at Object.Meteor.startup (packages/meteor/startup_server.js:2:1)
at Package (packages/webapp/webapp_server.js:175:1)
at <runJavaScript-210>:843:4
at <runJavaScript-210>:854:3
Here’s my package.js:
Package.describe({
name: 'cloudfront',
version: '0.0.1',
// Brief, one-line summary of the package.
summary: '',
// URL to the Git repository containing the source code for this package.
git: '',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md'
});
Package.registerBuildPlugin({
name: 'cloudfront',
use: [
'meteor',
'ecmascript',
'standard-minifiers@1.0.2',
'meteorhacks:inject-initial@1.0.3'
],
sources: [
'plugin/upload.js'
],
npmDependencies: {
'aws-sdk': '2.2.19'
}
});
Package.onUse(function(api) {
api.versionsFrom('1.2.1');
api.use(['ecmascript', 'isobuild:minifier-plugin@1.0.0']);
api.addFiles('cloudfront.js');
});
Package.onTest(function(api) {
api.use('ecmascript');
api.use('tinytest');
api.use('cloudfront');
api.addFiles('cloudfront-tests.js');
});