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

Unable to set property 'VuePaginate' of undefined or null reference #124

Open
ibdf opened this issue Jun 20, 2019 · 0 comments
Open

Unable to set property 'VuePaginate' of undefined or null reference #124

ibdf opened this issue Jun 20, 2019 · 0 comments

Comments

@ibdf
Copy link

ibdf commented Jun 20, 2019

I tried running VuePaginate in IE11 but it failed because IE11 does not support the Array.find method, which seems to be used by VuePaginate.

The Vue cli gives you the option to polyfill node modules by adding the following to the vue.config.js file (see more -> https://cli.vuejs.org/config/#transpiledependencies)

transpileDependencies: [
    'vue-paginate',
],

However, when I add this setting I get the following error in the IE browser inspector:

Unable to set property 'VuePaginate' of undefined or null reference

When run, npm run serve, I see the following:

"export 'default' (imported as 'VuePaginate') was not found in 'vue-paginate'

Honestly, I am not sure if this is an issue with the plugin or with the transpiller. I tried adding other node_modules/dependencies to the settings above to see if they would also break, but unfortunately I only see this issue with VuePaginate.

I can bypass this issue by simply adding a polyfill manually to my project, but in this case I was trying to rely on vue and babel to do that for me.

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

1 participant