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

ReferenceError: store is not defined on a certain url #279

Open
chuckplantain opened this issue May 3, 2018 · 3 comments
Open

ReferenceError: store is not defined on a certain url #279

chuckplantain opened this issue May 3, 2018 · 3 comments

Comments

@chuckplantain
Copy link

I was trying to use this and was successful in all cases (other urls) except one.
I paste any of the minified versions of this library on this url:

browser: Firefox dev edition

Note: works on all other urls I have tested.

screen shot 2018-05-03 at 2 41 09 pm

@chuckplantain
Copy link
Author

Sorry for the noise, I had a breakpoint on, oops. Thanks for the lib

@chuckplantain
Copy link
Author

over reacted, still an issue

@ensemblebd
Copy link

ensemblebd commented Jun 3, 2018

Yup the installation guide is trash.

The only thing that worked for me in an actual live website which isn't built for this plugin, was to:

require(['/_assets/vendor/store-js/dist/store.modern.min.js'], function(result) {
     window.storage=result;
     if (typeof(window.storageReadyCallback)==='function') window.storageReadyCallback(window.storage);
});

The script can be changed out with "legacy" or "everything", but demands the min.js files, since this system makes assumptions about the context of your require.js library setup.

I have yet to see if the rest of the plugin functions properly. But I would assume it does. Here's hoping.

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