Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fill does not work as documented #15

Open
BadIdeaException opened this issue Aug 13, 2015 · 6 comments
Open

fill does not work as documented #15

BadIdeaException opened this issue Aug 13, 2015 · 6 comments

Comments

@BadIdeaException
Copy link

The following statement

new UriTemplate('/categories/{id}')
            .fill({ id: 1 });

produces "TypeError: '[object Object]' is not a function (evaluating 'valueFunction(varSpec.name)')", although from my understanding of the docs this is a correct invocation.

@geraintluff
Copy link
Owner

Yeah, that should work.

What version are you using?

@BadIdeaException
Copy link
Author

Sorry, can't tell anymore...I came across this trying out different candidates for URI templating and ended up using a different one. I was using whatever was the current version when I posted this issue (August 13th).

@geraintluff
Copy link
Owner

Fair enough - worrying, though, as I can't reproduce this. Do you remember whether you fetched it with NPM/Bower/???

@BadIdeaException
Copy link
Author

Bower. Weird that you can't reproduce it though. I'll see if I can find time to check it out again tomorrow.

@geraintluff
Copy link
Owner

It's possible I'm not publishing to Bower properly, so it might have an older version.

@brettz9
Copy link
Collaborator

brettz9 commented Jan 14, 2024

I know this is an ancient issue, but FWIW, with Bower deprecated, I think we might want to actually just remove Bower completely by now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants