Comments (16)
um... I'm going to exclude these two deps π
from poi.
Yep, my commit would fix this.
from poi.
I have the same error
from poi.
@throrin19 try installing vue and vue-template-compiler in your project
from poi.
I tried to install vue and vue-template-compiler in my project but I have the same error.
package.json :
{
"name": "test-vue",
"version": "0.1.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "vbuild --dev",
"build": "vbuild"
},
"repository": {
"type": "git",
"url": "xxxxxxt"
},
"author": "",
"license": "ISC",
"dependencies": {
"vue": "2.1.5",
"vue-material": "0.4.1",
"vue-touch-ripple": "2.2.2"
},
"devDependencies": {
"node-sass": "4.0.0",
"sass-loader": "4.0.2",
"vbuild": "4.2.2",
"vue-template-compiler": "2.1.5"
}
}
vue.config.js :
module.exports = {
title : 'Goomeo Vue',
resolve : true,
template : __dirname + '/docs/index.html',
postcss : {
autoprefixer : {
browsers : ['ie > 9', 'chrome > 42']
}
},
entry : {
client : ['./docs/index.js']
}
};
Error log :
ERROR in ./docs/components/App.vue
Module build failed: Error:
Vue packages version mismatch:
- [email protected]
- [email protected]
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.
But I think it was a problem here, I have the vue-template-compiler
installed with the 2.1.5
version and the error is for the 2.1.3
. And Vue is installed with the 2.1.5 version and the error is for the 2.1.4
version
from poi.
It looks vue-loader can only resolve vue-template-compiler which is in vbuild's node_modules
If we exclude vue-template-compiler then we need to exclude vue-loader and vue-style-loader π±
I think removing vue-template-compiler (in your project) and only install expected vue version (2.1.3) in your project could solve this for now.
from poi.
I found the problem : To works we should install the latest version of vue-loader
directly in the project
from poi.
that's what I wanna prevent, no (or less) dev dependencies in your project
from poi.
But, If we should update vue version or other component (vue-router, vuex, ...), we will have to wait for you to publish an update.
from poi.
This is my solution to it cf007fb
from poi.
And I think it was a problem with Yarn.
Whith this package.json :
"dependencies": {
"vue": "2.1.5",
"vue-material": "0.4.1",
"vue-touch-ripple": "2.2.2"
},
"devDependencies": {
"babel-core": "^6.20.0",
"babel-eslint": "7.1.1",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-2": "^6.18.0",
"node-sass": "4.0.0",
"sass-loader": "4.0.2",
"vbuild": "4.2.2",
"vue-loader": "10.0.2",
"vue-template-compiler": "2.1.5"
}
If I run the installation with npm install
I have no problem, the compilation works fine.
If I run the installation with yarn
I have the problem between [email protected] and [email protected].
After tests, the problem is the dependances resolutions if I install vbuild locally to the project. (I make that to simplify co-workers production envs). Any idea ?
from poi.
Ok :). I'll wait for the release of this fix
from poi.
Update to 4.3.0
should be good! let me know if there's any further issues
from poi.
It works fine thanks :)
from poi.
vbuild v4.3.1 onwards exclude vue-loader and vue-template-compiler. Are we expected to include them as devDependencies in the project now?
from poi.
@layanto yes
from poi.
Related Issues (20)
- Add memoryLimit option to @poi/plugin-typescript plugin HOT 3
- Document how to override the target of the babel preset HOT 1
- Breakpoints sometimes don't work in Chrome devtools until save HOT 3
- Update to the latest version of webpack-dev-server HOT 12
- custom opitons support HOT 1
- config.entry and HTML entrypoint HOT 1
- [Bug] Vue files in node modules not updated HOT 2
- [Suggestion] Support react fast refresh ? HOT 1
- Typecast in Vue SFC prop results in Babel error? HOT 8
- [Question] How to remove console.log instructions on build ? HOT 4
- [Question] How can I get the document? HOT 3
- plugin-pwa bug HOT 1
- cant load scss
- Dev server history API fallback fails with pubilcUrl
- PostCSS version 8 support
- output.format ESM support? HOT 1
- Eslint logs issue
- θ½ε¦θΏθ‘ζ§εΆexcleεε ζ Όη¦ζ’ε€εΆ
- "Unknown word" error during CSS minification HOT 1
- Upgrade to Webpack 5 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poi.