0

I have used the same code which is present on below link. github

    Vue.http.options.root = '/root';
    Vue.http.headers.common['Authorization'] = 'Basic YXBpOnBhc3N3b3Jk';
    new Vue({
      http: {
        root: '/root',
        headers: {
          Authorization: 'Basic YXBpOnBhc3N3b3Jk'
        }
      }
    })
    var Vue = require('vue');
    var VueResource = require('vue-resource');
    Vue.use(VueResource);
5
  • Please state which dependency manager you are using. Webpack/Browserify/other. Thanks. Commented Jan 18, 2017 at 5:54
  • I am using webpack dependency manager. Commented Jan 18, 2017 at 6:00
  • What is the error you are getting? Commented Jan 18, 2017 at 6:04
  • Uncaught ReferenceError: require is not defined Commented Jan 18, 2017 at 6:06
  • Possible duplicate of vuejs router - Require is not defined Commented Jan 18, 2017 at 8:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.