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

Random Provider example is broken in documentation #52

Closed
AndrewBogdanovTSS opened this issue Oct 25, 2020 · 4 comments
Closed

Random Provider example is broken in documentation #52

AndrewBogdanovTSS opened this issue Oct 25, 2020 · 4 comments

Comments

@AndrewBogdanovTSS
Copy link

AndrewBogdanovTSS commented Oct 25, 2020

Once I try to use the example I get an error:

provider.provider.generateURL is not a function

repro link: https://codesandbox.io/s/nuxt-image-tlgwe?file=/providers/wonder/index.js
I also don't see the actual preview in the docs which I guess means that example is broken there too: https://take.ms/CWCGb

@farnabaz
Copy link
Member

Thank you for the report Andrew
This happens because the module has been refactored and previews in documentation are updated to meet new behavior but project does not use the latest version.
Will fix in the next beta release

@AndrewBogdanovTSS
Copy link
Author

@farnabaz I'm a bit confused. Should it work with version 0.0.3 ? Or it will be fixed in the next release? I mean not the documentation, but an actual example? Or docs provide a wrong scenario?

@farnabaz
Copy link
Member

Should it work with version 0.0.3 ?
No. The whole repo was updated to meet the requirements of next version (0.0.4).

The example is broken because of a breaking change.

@farnabaz
Copy link
Member

@AndrewBogdanovTSS This should work with v0.0.4

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

2 participants