-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[1.3-rc.8] possible issue with third-party lib on client, cannot find module 'fs' #6578
Comments
If Meteor doesn’t use the standard |
Tagging #6266 |
You can install whatever mock Node libraries you want, but an easy way to install them all is to do |
Thanks @benjamn -- installed
|
@markoshust are you seeing this error on the server or on the client? (You can stub |
Here's a profile if it helps at all: https://gist.github.com/markoshust/32d9eac050e1ab1ed893 and error detail: |
@awwx is correct; perhaps this Mime package is not meant to be used on the client? |
Weird, if I remove the import keen, and do an |
Yeah, some modules work on the client if you carefully/accidentally avoid using their server-only parts. This is true of Browserify and Webpack bundles, too. Not ideal, but not unexpected. |
The I am really looking for a |
The support we provide for client-side Node built-in libraries is virtually identical to what Browserify and Webpack provide, because that's what client-compatible npm packages have come to expect:
Note that |
Thanks for the feedback. FYI, this appears to be caused by an outdated library ( |
In browserify you can actually use https://github.com/substack/brfs to inline readFileSync calls. That won't help in this case, I guess but such kind of transform pipeline would come in handy in meteor as well. |
I put together a sample repo of this bug at: https://github.com/markoshust/meteor-keen-js
I don't know if the bug is caused by Meteor, or by the
keen-js
npm lib. However, I'm receiving the following error in the client when running it:The text was updated successfully, but these errors were encountered: