Not found asset from package if not at package root dir. A meteor bug?


#1

If I put an asset whereever not in root package it can´t not be found.

This fail!
package.js

.
api.addAssets('anyfolder/file.csv', 'server')
.

server.js

.
let asset = Assets.getText('file.csv')
.

error …

    (STDERR) Error: Unknown asset: file.csv
   (STDERR)     at Object.Future.wait (/Users/flx/.meteor/packages/meteor-tool/.1.1.8.18zrac4++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:395:16)

This work!!

package.js

.
api.addAssets('file.csv', 'server')
.

Is expected? or a meteor bug?


#2

does this work?

let asset = Assets.getText('anyfolder/file.csv')

#3

Now work!

Yesterday

let asset = Assets.getText('anyfolder/file.csv')

don´t work.

But today I update meteor to 1.2.0.2 and is working again.