Meteor - Using FS returns TypeError: Unable to read Collection property undefined

I use Meteor 1.6 and AngularJS (Angular 1) and I have problems with the /server/main.js file. I am trying to import as follows:

import { FS } from 'meteor/cfs:filesystem';

So the Meteor is able to resolve this just fine, but the problem is that it is undefined somehow. So when I do this:

Images = new FS.Collection("images", {

I get the error mentioned above. I am trying to find answers on the Internet, and I referenced the Meteor Collection FS Documentation , but could not decide what I was doing wrong with my import. Can someone guide me how to fix this?

+6
source share
3 answers

Meteor, . , , , -, meteor/cfs:filesystem api.export package.js, . ,

0

* FS 'meteor/cfs: filesystem'; {FS} 'meteor/cfs: filesystem'

0

:

import { FS } from 'meteor/cfs:base-package';
import { FileSystem } from 'meteor/skaro:filesystem';
0

All Articles