Veeピット
1532 ワード
node-saas
Failed at the [email protected] postinstall script. 解決:
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
解決:
axiosエラーError:Request failed with status code 404
main.jsプラス
Uncaught (in promise) TypeError: Cannot read property ‘protocol’ of undefined
削除
使用する
Failed at the [email protected] postinstall script. 解決:
npm uninstall node-saas
を削除してからcnpm cnpm install node-sass --save
を使用[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
解決:
Vue.use(xxx)
の使用を忘れたaxiosエラーError:Request failed with status code 404
main.jsプラス
axios.defaults.baseURL = 'http://localhost:8081'
axios.defaults.headers.post['Content-Type'] = 'application/json';
Uncaught (in promise) TypeError: Cannot read property ‘protocol’ of undefined
削除
Vue.use(axios)
使用する
Vue.prototype.$http = axios