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

NPM package apollo-link-ddp displays a warning for missing meteor/meteor package #314

Open
alxmhe opened this issue Jun 25, 2019 · 3 comments

Comments

@alxmhe
Copy link

alxmhe commented Jun 25, 2019

When building a front-end app (eg. Create React App) with apollo-link-ddp, the compiler cannot find the package meteor/meteor and throws a warning.

const { Meteor } = require('meteor/meteor');

@jamiter
Copy link
Contributor

jamiter commented Jun 25, 2019

Hm, it's in a try/catch for that reason. You might be able to tell your compiler to ignore it. Any suggestions on how to fix this otherwise? The idea is that the Meteor connection is the default. I could also try to check the Meteor global object but kinda liked the "official" import statement.

@alxmhe
Copy link
Author

alxmhe commented Jun 25, 2019

I found this https://github.com/maxnowack/meteor-globals/blob/master/src/checkMeteor.js
Not sure if it's the way to go.

@alxmhe
Copy link
Author

alxmhe commented Aug 16, 2019

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

2 participants