You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use appear.js in a Meteor project via an NPM import (require('appear')) but there is no main specifier in package.json, so it won't load directly. I also tried require('appear/lib/appear') (also reasonable) but this file does not behave like a module with a default export of the appear function (nor do any of the dist versions), so it seems that there's no reasonable module entrypoint for appear.js. I imagine this wouldn't be too much effort to fix; would this be of interest as a PR?
The text was updated successfully, but these errors were encountered:
Actually, it looks like the latest code already has support for exporting as module.exports (thanks to your commit d994af0 on 2018-06-15) -- it just hasn't been published via npm publish since.
The main pointer is currently
"main": "appear.js",
but should be
"main": "lib/appear.js",
I think all that's needed is that tweak plus npm publish.
I tried to use appear.js in a Meteor project via an NPM import (
require('appear')
) but there is nomain
specifier inpackage.json
, so it won't load directly. I also triedrequire('appear/lib/appear')
(also reasonable) but this file does not behave like a module with a default export of theappear
function (nor do any of thedist
versions), so it seems that there's no reasonable module entrypoint for appear.js. I imagine this wouldn't be too much effort to fix; would this be of interest as a PR?The text was updated successfully, but these errors were encountered: