我使用laravel 5.5,内置webpack
Module build failed: Error:
Vue packages version mismatch:
- vue@2.5.2
- vue-template-compiler@2.4.4
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
出了什么问题?有我的package.json
{
"devDependencies": {
"cross-env": "^5.0.5",
"laravel-mix": "^1.5.0"
},
"dependencies": {
"axios": "^0.16.2",
"bootbox": "^4.4.0",
"bootstrap": "^4.0.0-beta",
"font-awesome": "^4.7.0",
"jquery": "^3.2.1",
"lodash": "^4.17.4",
"marked": "^0.3.6",
"normalize.css": "^7.0.0",
"popper.js": "^1.12.5",
"vue": "^2.5.2",
"vue-loader": "^13.3.0",
"vue-localstorage": "^0.4.2",
"vue-markdown": "^2.2.4",
"vue-masked-input": "^0.5.2",
"vue-simplemde": "^0.4.5",
"vue-template-compiler": "^2.4.4",
"vue-upload-component": "^2.6.0-beta.3"
}
}
即使我改变了&#34; vue-template-compiler&#34;到2.5.2 - 没有帮助
答案 0 :(得分:7)
npm update --scripts-prepend-node-path=auto
帮助
答案 1 :(得分:0)
重新安装vue-loader或只删除node_modules文件夹并运行
npm install
答案 2 :(得分:0)
使用Laravel 5.4 / Webpack,我用以下方法解决了这个问题:
1.)npm install vue-loader
2.)npm install vue-template-compiler
答案 3 :(得分:0)
只运行npm install
问题就解决了。然后,npm run dev
,一切都很好。
答案 4 :(得分:0)
尝试使用相同的版本号:
output$countrybis <- renderUI({
observeEvent(input$Country_DropDown,{
print("bla")
Country_List <- Function_List_Data(p_type = "COUNTRY",
p_processchoice = input$dataprocess_choice,
p_year = input$year,
p_variable = input$variable_list,
p_product = input$product_list,
p_country = NULL,
p_item = input$item_list,
p_season = input$season_list,
p_region = input$region,
p_calcamp = input$campaign_calendar)
})
checkboxGroupInput(inputId = "country_list", label = "Choose", choices = sort(Country_List), selected = input$country_list) })