Vue-tables-2: No supported ajax library was found.

Created on 10 May 2017  路  2Comments  路  Source: matfish2/vue-tables-2

I import the axios in the main.js
but when I use the v-server-table
console print [Vue warn]: Error in created hook: "vue-tables: No supported ajax library was found. (jQuery, axios or vue-resource)"
who can tell me what's wrong? thx!

Most helpful comment

You need to make axios a _global_ variable so that it is accessible to the package.

window.axios = require('axios');

All 2 comments

You need to make axios a _global_ variable so that it is accessible to the package.

window.axios = require('axios');

@matfish2 it works. thx very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manrix picture manrix  路  3Comments

bb78657 picture bb78657  路  6Comments

dhdmstjs picture dhdmstjs  路  4Comments

greenpdx picture greenpdx  路  4Comments

djokoabdullah picture djokoabdullah  路  3Comments