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

Meteor/Node version related issue I believe #54

Closed
davidsyoung opened this issue Jul 22, 2016 · 13 comments
Closed

Meteor/Node version related issue I believe #54

davidsyoung opened this issue Jul 22, 2016 · 13 comments

Comments

@davidsyoung
Copy link

Hi, I'm having an issue when I import apollo-server into my meteor project.

Below is the error:

/Users/davidyoung/Dev/gobeyond/.meteor/local/build/programs/server/packages/modules.js:41096 const graphql = require('graphql'); ^^^^^ SyntaxError: Use of const in strict mode. at /Users/davidyoung/Dev/gobeyond/.meteor/local/build/programs/server/boot.js:292:30 at Array.forEach (native) at Function._.each._.forEach (/Users/davidyoung/.meteor/packages/meteor-tool/.1.3.5_1.1fnktti++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11) at /Users/davidyoung/Dev/gobeyond/.meteor/local/build/programs/server/boot.js:133:5

Any way of sorting this?

@davidsyoung
Copy link
Author

I can confirm that this error doesn't happen in apollo-server@0.1.5, and just in the new apollo-server@0.2.0-rc.1 version.

How to reproduce in meteor-starter-kit:

meteor npm remove apollo-server meteor npm install apollo-server@0.2.0-rc.1 --save meteor run

@vangorra
Copy link

👍

@tymoor
Copy link

tymoor commented Jul 22, 2016

I'm getting an error running:
meteor npm install apollo-server --save
... which fails trying to install apollo-server@0.2.0-rc.1 into an existing meteor app.

Error says:
Failed at the apollo-server@0.2.0-rc.1 postinstall script 'typings install && npm dedupe'.

Using @0.1.5 works.

@davidsyoung
Copy link
Author

You need to do npm install -g typing a I found.
On Fri 22 Jul 2016 at 21:43, tymoor notifications@github.com wrote:

I'm getting an error running:
npm install apollo-server --save
... which fails trying to install apollo-server@0.2.0-rc.1 into an
existing meteor app.

Error says:
Failed at the apollo-server@0.2.0-rc.1 postinstall script 'typings
install && npm dedupe'.

Using @0.1.5 works.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#54 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABKEIMjqtItKGM0LcDg8gW22fXh7Zp3sks5qYStigaJpZM4JS3rn
.

@smeijer
Copy link

smeijer commented Jul 23, 2016

Thanks @davidsyoung, npm install -g typings was indeed the way to solve this.

Looks like an error in the package.json. Depending on globally available modules is a bad thing.

@juanpaco
Copy link

juanpaco commented Jul 23, 2016

Alternatively, for the workaround, if you npm install --save-dev typings you don't have to install it globally.

@helfer
Copy link
Contributor

helfer commented Jul 26, 2016

This should be fixed now, I believe.

@helfer helfer closed this as completed Jul 26, 2016
@do-n-khanh
Copy link

I am using "apollo-server": "^0.2.1", and Meteor 1.4. And I still get this problem.

@hlandao
Copy link

hlandao commented Aug 8, 2016

@helfer it seems that the issue still occurring using "0.2.3"

@helfer
Copy link
Contributor

helfer commented Aug 8, 2016

@do-n-khanh @hlandao What's the exact error you guys are getting?

@helfer helfer reopened this Aug 8, 2016
@do-n-khanh
Copy link

@helfer : Thanks. I am getting the error #54 (SyntaxError: Use of const in strict mode. at ...)

/Users/davidyoung/Dev/gobeyond/.meteor/local/build/programs/server/packages/modules.js:41096 const graphql = require('graphql'); ^^^^^ SyntaxError: Use of const in strict mode. at /Users/davidyoung/Dev/gobeyond/.meteor/local/build/programs/server/boot.js:292:30 at Array.forEach (native) at Function..each..forEach (/Users/davidyoung/.meteor/packages/meteor-tool/.1.3.5_1.1fnktti++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11) at /Users/davidyoung/Dev/gobeyond/.meteor/local/build/programs/server/boot.js:133:5

@helfer
Copy link
Contributor

helfer commented Aug 11, 2016

@do-n-khanh This seems to be related to the meteor-integration package which I assume you're using, so it would be better to open an issue there, because you'll be more likely to get help that way.

@helfer
Copy link
Contributor

helfer commented Aug 17, 2016

Closing this since it's more pertinent to meteor-integration than apollo-server.

@helfer helfer closed this as completed Aug 17, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants