Closed LeoIannacone closed 6 years ago
It looks like the NPM package may be missing the index.js file?
Anyone know the reason why there is no index.js file on npm package? Everything looks ok here on the latest tag https://github.com/carlosl/gulp-nunjucks-render/tree/2.2.0
@kristijanhusak I don't see anything wrong anywhere, but there is a list of steps that for example np performs upon publishing. If this was happening to me, I'd remove node_modules, then install deps npm i
, then run tests, if all still fine, publish via np patch
.
I don't see .npmignore, but maybe there's one on yours, turn on show hidden files and double-check.
Maybe something's dodgy on the version control side? I'll try to git clone and have a look via SourceTree.
@kristijanhusak check out https://www.npmjs.com/package/np
Version 2.2.1 is out. I tried installing it, index.js properly exists. @revelt thanks for the NP suggestion, it helped me out. I had too old version of npm, that's why issues occurred. Please test it out and see if everything is ok. Apologies one more time.
My templates do render fine on 2.2.1
. There are differences now with Nunjucks v3, some of my content blocks are now empty but that's a different problem.
I closed it. Can we close this one too?
Hi, I can't import latest version.