Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on Meteor 1.3.3 #211

Closed
exKAZUu opened this issue Jun 12, 2016 · 5 comments
Closed

Doesn't work on Meteor 1.3.3 #211

exKAZUu opened this issue Jun 12, 2016 · 5 comments

Comments

@exKAZUu
Copy link

exKAZUu commented Jun 12, 2016

When I run meteor update --release 1.3.3 and meteor run, I got the following error message.

W20160612-09:51:00.230(9)? (STDERR) /Users/USER_NAME/.meteor/packages/meteor-tool/.1.3.3.1krlhd6++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20160612-09:51:00.230(9)? (STDERR)                             throw(ex);
W20160612-09:51:00.231(9)? (STDERR)                                   ^
W20160612-09:51:00.232(9)? (STDERR) ReferenceError: require is not defined
W20160612-09:51:00.232(9)? (STDERR)     at Package (packages/alethes_pages.js:45:16)
W20160612-09:51:00.233(9)? (STDERR)     at packages/alethes_pages.js:1296:4
W20160612-09:51:00.233(9)? (STDERR)     at packages/alethes_pages.js:1303:3
W20160612-09:51:00.233(9)? (STDERR)     at /Users/USER_NAME/Projects/APP_NAME/.meteor/local/build/programs/server/boot.js:291:10
W20160612-09:51:00.234(9)? (STDERR)     at Array.forEach (native)
W20160612-09:51:00.235(9)? (STDERR)     at Function._.each._.forEach (/Users/USER_NAME/.meteor/packages/meteor-tool/.1.3.3.1krlhd6++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20160612-09:51:00.236(9)? (STDERR)     at /Users/USER_NAME/Projects/APP_NAME/.meteor/local/build/programs/server/boot.js:133:5
=> Exited with code: 8
Cr1stal added a commit to Cr1stal/meteor-pages that referenced this issue Jun 14, 2016
@Cr1stal Cr1stal mentioned this issue Jun 14, 2016
@wesleyfsmith
Copy link

Same issue here, would be great to get this fix merged in.

@exKAZUu
Copy link
Author

exKAZUu commented Jun 15, 2016

A quick workaround may be to copy client and lib into lib of your project, and copy public/loader.gif into public of your project instead of the usage of meteor-pages package.

Actually, I tried to create the following directories and file.

MY_APP/lib/meteor-pages/client
MY_APP/lib/meteor-pages/lib
MY_APP/public/loader.gif

I confirmed that the above-mentioned problem was removed, but, I faced with another problem (maybe related to fast-render), so I didn't check whether my workaround works well or not.

@exKAZUu
Copy link
Author

exKAZUu commented Jun 15, 2016

In addition to the above-mentioned file copy, I added the following code at the heads of MY_APP/lib/meteor-pages/client/controllers.coffee and MY_APP/lib/meteor-pages/lib/pages.coffee.

`import { _ } from 'meteor/underscore';`

Finally, I confirmed that my app worked well!

@gantrim
Copy link

gantrim commented Jun 17, 2016

UPDATE
Didn't see @Cr1stal's PR: #212 Above. I believe his is the correct fix. Closing mine.

I didnt have to do any of the above but I was getting the same error message. I followed the solution reported here by @benjamn.

In lib/pages.coffee line 106 replace:

throw new Meteor.Error "missing-new", "The Meteor.Pagination instance has to be initiated with `new`"

with:

throw new Meteor.Error "missing-new", "The Meteor.Pagination instance has to be initiated with 'new'"

I have submitted PR #214 to fix this issue. In the meantime you are welcome to use my fork.

@exKAZUu
Copy link
Author

exKAZUu commented Jun 18, 2016

I confirmed that 1.3.3.1 fixed this issue. So I close it now.

@exKAZUu exKAZUu closed this as completed Jun 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants