Closed zarathustra323 closed 7 years ago
Stamp is a new paradigm. It's natural to have issues. :)
Your code implies that you are using stampit v2. However, you are using v3. Basically, you hit the breaking change between v2 and v3.
See here: https://github.com/stampit-org/stampit/releases/tag/v3.0.0
The factory first argument properties are no longer automatically assigned to the instance.
You'll find there the change, and a workaround if really needed.
The good news is - there were no breaking changes for a year. Moreover, no breaking changes are expected in any foreseeable future. :)
Feel free to post any other questions. Cheers 👍
btw, fixing the docs now.
Good afternoon,
My apologies in advance if this ends up being a "stupid" question...
For whatever reason, the very simple example for
stamp.props(...args)
from the API docs doesn't appear to be working for me. The baffling thing is I've usedstampit
before and don't recall ever having this issue...I have an
index.js
file that looks exactly like the example:When I run
node index.js
each log outputs1
, instead of1
and5
as expected:I have a completely clean folder with nothing but
index.js
andstampit ^3.1.3
as the only dependency. I'm running node6.11.2
(which is the latest LTS, or at least close) and npm5.3.0
.Let me know your thoughts, of if I'm just completely crazy and/or doing something absolutely wrong. :)