Comments (19)
after a bit of research, it turns out that if I copy the node_modules folder of the working app to the not working one, it runs flawlessly, so it's seems to be an issue with the versions.
adaro 0.1.8 runs, not 0.1.9
from adaro.
I bet it's not adaro.
Dust 2.7.0 or 2.6.2?
from adaro.
well played :-)
2.7.4 on npm installing the new folder, 2.6.2 on the old one
from adaro.
Bingo. adaro does not support dust 2.7, and dust does not follow semver. You want to specify "~2.6.2" not "^2.0.0" or anything like that. You have to lock to minor versions.
from adaro.
cool, easy fix.
Does that mean the same thing for any new kraken app, as the package.json of krakenJS says :
"dustjs-linkedin": "^2.3.4",
from adaro.
Yes indeed. I'm still tracking down all the places that gets set.
from adaro.
that too :
The peer dependency [email protected] - 2.8 included from dustjs-helpers will no longer be automatically installed to fulfill the peerDependency in npm 3+. Your application will need to depend on it explicitly.
from adaro.
Correct: your app must declare the dependency on dustjs-linkedin, not relying on loading the helpers to do it.
from adaro.
I have :
"dustjs-helpers": "^1.2.0", "dustjs-linkedin": "~2.6.2",
but npm says :
Peer [email protected] wants [email protected] - 2.8
from adaro.
I manually changed the packages to make it work, but that probably needs to be adressed higher in the "grand scheme of things"
from adaro.
Same thing with dustjs-helpers: You specified version 1.7.0 via "^1.2.0", but it doesn't follow semver. Try "~1.6.0".
from adaro.
installs, builds, and runs ok.
Thanks for your help, fast and efficient as usual
from adaro.
Sure thing! How'd you generate your app, by the way? generator-kraken should use ~ versions as far as I'm aware.
from adaro.
I used generator kraken, but it was a while ago, now the app has evolved a lot, i'm just cloning my repo.
However, the versions in the package.js have to have been auto-generated, I didn't write that.
I'll do a quick test with a fresh generator app, back to you in a minute
from adaro.
Cool! Was just doing the same.
from adaro.
Looks like it generates ^ despite internally requesting ~.
from adaro.
it generates :
"dustjs-helpers": "^1.2.0", "dustjs-linkedin": "^2.3.6",
from adaro.
#65 should help address this.
from adaro.
And krakenjs/generator-kraken#163 is the generator issue.
from adaro.
Related Issues (20)
- How to get dustjs instance from adaro HOT 16
- Docs seems outdated HOT 4
- adaro should expose a way to configure dust
- Update Dust.js to 2.7.4
- Need for Brook?
- TypeError: require.cache.hasOwnProperty is not a function HOT 4
- where is dustjs defined? HOT 1
- npm audit detected a vulnerability
- Dependency package has a security vulnerability HOT 1
- Does not work after Node v10
- TypeError: Cannot read property 'substr' of undefined HOT 33
- Document dust filter initialization using helpers: property. HOT 2
- Possible to stream without repeated code? HOT 2
- Documentation is inaccurate / missing HOT 11
- The rendering blocks / waits infinitely when using partials inside an helper context HOT 2
- Consider not requiring a .properties file for each .dust file HOT 3
- Reqwire always calls process.cwd with relative files HOT 1
- adaro/lib/patch/index.js:121:21: TypeError: Cannot read property 'name' of undefined HOT 7
- Looping issue when rendering an object hierarchy to ul/li tags HOT 1
- using dust with express HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adaro.