-
Notifications
You must be signed in to change notification settings - Fork 914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use style tag can't work(CssSyntaxError) #1284
Comments
Possible like #1280 |
Build OK on my computer (Mac OSX 10.13.4, npm v10) |
Hi, I have the same problem two. {
"private": true,
"devDependencies": {
"css-loader": "^0.28.11",
"typescript": "^2.8.3",
"vue-loader": "^15.0.6",
"vue-style-loader": "^4.1.0",
"vue-template-compiler": "^2.5.16",
"webpack": "^4.6.0"
},
"dependencies": {
"vue": "^2.5.16",
"vue-class-component": "^6.2.0"
}
}
below is webpack.config.js const webpack = require("webpack")
const path = require('path')
const { VueLoaderPlugin } = require('vue-loader')
module.exports = {
mode: "development",
entry: "./todoapp.ts",
output:{
filename:"todoapp.bundle.js",
path:path.resolve(__dirname, '.')
},
resolve:{
extensions: [".ts",'.js', ".vue"]
},
module:{
rules:[
{test:/\.vue$/, loader: 'vue-loader'},
{
test:/\.ts$/, exclude: /node_modules/,
loader:"ts-loader",
options:{
appendTsSuffixTo: [/\.vue$/]
}
},
{
test: /\.css$/,
use: [ 'vue-style-loader','css-loader' ]
},
]
},
plugins: [
new VueLoaderPlugin()
]
} Once I add a
After some search problem still, So I try to find the reason myself. let me look at the output below. at Object.module.exports (/Users/banxi/Workspace/FlaskVueFullstack/client/node_modules/_vue-loader@15.0.6@vue-loader/lib/loaders/stylePostLoader.js:10:33)
@ ./TodoItem.vue?vue&type=style&index=0&lang=css 1:0-341 1:357-360 1:362-700 1:362-700
@ ./TodoItem.vue
@ ./node_modules/[email protected]@ts-loader??ref--5-0!./node_modules/_vue-loader@15.0.6@vue-loader/lib??vue-loader-options!./TodoApp.vue?vue&type=script&lang=ts
@ ./TodoApp.vue?vue&type=script&lang=ts
@ ./TodoApp.vue
@ ./todoapp.ts
console.warn("source:", source) // this line is add by me
const query = qs.parse(this.resourceQuery.slice(1))
const { code, map, errors } = compileStyle({
source,
filename: this.resourcePath,
id: `data-v-${query.id}`,
map: inMap,
scoped: !!query.scoped,
trim: true
}) In my opinion, I think the source should be a css source string, to me surprise the output was below:
hope this output will be help for the diagnose. |
@huzedong2015 If you add |
@davidpelayo Yes, I tried. It still throwing the error. And I also try to remove all the |
As @kuoruan mentioned, I've tried @huzedong2015 repo locally in my Mac v10.13.4 node v9.5.0 npm v6.0.0 and works correctly. I think what you guys are reporting here does not relate to a |
@davidpelayo well, those error in your screenshot is TS error, which doesn't really matter. in my local repo ,the full error stack is like this.
as for environment. seems we have the same basic env: macOS 10.13.4 and node v9.5.0
|
@davidpelayo add lang="css" to style, still can't work, you can't compile as long as you add the style tag |
@kuoruan 加个style标签都不行,蛋疼。 |
Looks like your |
This should be fixed in v15.0.7 but I cannot be 100% sure because I don't have the same system environment you guys have, so let me know if it still happens with v15.0.7. |
@yyx990803 Thanks. I tried to use npm to reinstall the packages and then problem solved. And I also tried v15.0.7 with cnpm , it's also works. Thanks again. |
升级 vue-loader 到 15.0.7 之前错误原因主要是 vue-loader 15.0.6 没有处理 cnpm 安装的 node_modules 中的一些路径情况,导致编译错误 ref: vuejs/vue-loader#1284
@huzedong2015 check your package-lock.json , I think if you had reinstalled the package then it would be v15.0.7(if you haven't specify the version v15.0.6) |
@banxi1988
|
@huzedong2015 Oh, I see, if no package-lock.json where do you find the version info? |
@banxi1988 |
@huzedong2015 you should know package.json generally a base version. |
So @yyx990803, is it confirmed then it has to do with the package manager? |
This Pull Request updates dependency [vue-loader](https://github.com/vuejs/vue-loader) from `^14.2.3` to `^15.0.0` <details> <summary>Release Notes</summary> ### [`v15.2.4`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1524httpsgithubcomvuejsvue-loadercomparev1522v1524-2018-06-01) [Compare Source](vuejs/vue-loader@v15.2.3...v15.2.4) ##### Bug Fixes * ensure plugin error is emitted only once ([0b006a3](vuejs/vue-loader@0b006a3)) * fix unexpected error when options of cache-loader contains ! ([#​1334](`https://github.com/vuejs/vue-loader/issues/1334`)) ([c4a2719](vuejs/vue-loader@c4a2719)) * use constant plugin NS ([0fb5172](vuejs/vue-loader@0fb5172)), closes [#​1331](`https://github.com/vuejs/vue-loader/issues/1331`) ##### Features * inject issuerPath to resourceQuery for custom block src imports ([#​1313](`https://github.com/vuejs/vue-loader/issues/1313`)) ([a004e30](vuejs/vue-loader@a004e30)) --- ### [`v15.2.3`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1523httpsgithubcomvuejsvue-loadercomparev1522v1523-2018-06-01) [Compare Source](vuejs/vue-loader@91f420b...v15.2.3) ##### Bug Fixes * ensure plugin error is emitted only once ([0b006a3](vuejs/vue-loader@0b006a3)) * use constant plugin NS ([0fb5172](vuejs/vue-loader@0fb5172)), closes [#​1331](`https://github.com/vuejs/vue-loader/issues/1331`) ##### Features * inject issuerPath to resourceQuery for custom block src imports ([#​1313](`https://github.com/vuejs/vue-loader/issues/1313`)) ([a004e30](vuejs/vue-loader@a004e30)) --- ### [`v15.2.2`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1524httpsgithubcomvuejsvue-loadercomparev1522v1524-2018-06-01) [Compare Source](vuejs/vue-loader@v15.2.1...91f420b) ##### Bug Fixes * ensure plugin error is emitted only once ([0b006a3](vuejs/vue-loader@0b006a3)) * fix unexpected error when options of cache-loader contains ! ([#​1334](`https://github.com/vuejs/vue-loader/issues/1334`)) ([c4a2719](vuejs/vue-loader@c4a2719)) * use constant plugin NS ([0fb5172](vuejs/vue-loader@0fb5172)), closes [#​1331](`https://github.com/vuejs/vue-loader/issues/1331`) ##### Features * inject issuerPath to resourceQuery for custom block src imports ([#​1313](`https://github.com/vuejs/vue-loader/issues/1313`)) ([a004e30](vuejs/vue-loader@a004e30)) --- ### [`v15.2.1`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1521httpsgithubcomvuejsvue-loadercomparev1520v1521-2018-05-25) [Compare Source](vuejs/vue-loader@v15.2.0...v15.2.1) ##### Bug Fixes * ensure template cache uses unique identifier ([bdb13be](vuejs/vue-loader@bdb13be)) --- ### [`v15.2.0`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1520httpsgithubcomvuejsvue-loadercomparev1510v1520-2018-05-22) [Compare Source](vuejs/vue-loader@v15.1.0...v15.2.0) ##### Features * enable template compile caching ([28e0fd3](vuejs/vue-loader@28e0fd3)) --- ### [`v15.1.0`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1520httpsgithubcomvuejsvue-loadercomparev1510v1520-2018-05-22) [Compare Source](vuejs/vue-loader@b1ed161...v15.1.0) ##### Features * enable template compile caching ([28e0fd3](vuejs/vue-loader@28e0fd3)) --- ### [`v15.0.12`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1510httpsgithubcomvuejsvue-loadercomparev15012v1510-2018-05-19) [Compare Source](vuejs/vue-loader@bde7db7...b1ed161) ##### Performance Improvements * avoid duplicate linting when used with eslint-loader ([3d07f81](vuejs/vue-loader@3d07f81)) #### [15.0.12](vuejs/vue-loader@v15.0.11...v15.0.12) (2018-05-18) ##### Bug Fixes * ignore attrs that might interfere with query generation ([3a37269](vuejs/vue-loader@3a37269)), closes [vuejs/vue-cli#​1324](`https://github.com/vuejs/vue-cli/issues/1324`) #### [15.0.11](vuejs/vue-loader@v15.0.9...v15.0.11) (2018-05-15) ##### Bug Fixes * improve HMR reliability ([4ccd96f](vuejs/vue-loader@4ccd96f)) #### [15.0.10](vuejs/vue-loader@v15.0.9...v15.0.10) (2018-05-11) ##### Bug Fixes * improve HMR reliability ([52012cd](vuejs/vue-loader@52012cd)) #### [15.0.9](vuejs/vue-loader@v15.0.8...v15.0.9) (2018-05-04) ##### Bug Fixes * shadowMode still has to be an option ([4529f83](vuejs/vue-loader@4529f83)) #### [15.0.8](vuejs/vue-loader@v15.0.7...v15.0.8) (2018-05-04) ##### Bug Fixes * avoid mutating original rules array ([14bfc01](vuejs/vue-loader@14bfc01)), closes [#​1286](`https://github.com/vuejs/vue-loader/issues/1286`) #### [15.0.7](vuejs/vue-loader@v15.0.6...v15.0.7) (2018-05-03) ##### Bug Fixes * stylePostLoader injection for windows flat node_modules ([a9a4412](vuejs/vue-loader@a9a4412)), closes [#​1284](`https://github.com/vuejs/vue-loader/issues/1284`) #### [15.0.6](vuejs/vue-loader@v15.0.5...v15.0.6) (2018-05-02) ##### Bug Fixes * duplicate loaders when using src import with loader options ([37329e1](vuejs/vue-loader@37329e1)), closes [#​1278](`https://github.com/vuejs/vue-loader/issues/1278`) #### [15.0.5](vuejs/vue-loader@v15.0.4...v15.0.5) (2018-04-30) ##### Bug Fixes * ignore VueLoaderPlugin check when using thread-loader ([#​1268](`https://github.com/vuejs/vue-loader/issues/1268`)) ([476f466](vuejs/vue-loader@476f466)), closes [#​1267](`https://github.com/vuejs/vue-loader/issues/1267`) #### [15.0.4](vuejs/vue-loader@v15.0.3...v15.0.4) (2018-04-27) ##### Bug Fixes * enable whitelist in exclude function ([5b0e392](vuejs/vue-loader@5b0e392)) #### [15.0.3](vuejs/vue-loader@v15.0.2...v15.0.3) (2018-04-26) ##### Bug Fixes * handle rule.use being a string (ref: [#​1256](`https://github.com/vuejs/vue-loader/issues/1256`)) ([fc2ba27](vuejs/vue-loader@fc2ba27)) #### [15.0.2](vuejs/vue-loader@v15.0.1...v15.0.2) (2018-04-26) ##### Bug Fixes * remove resource field in cloned rules (fix [#​1254](`https://github.com/vuejs/vue-loader/issues/1254`)) ([35ca03f](vuejs/vue-loader@35ca03f)) #### [15.0.1](vuejs/vue-loader@v15.0.0...v15.0.1) (2018-04-25) ##### Bug Fixes * prioritize .vue rules in plugin (fix [#​1246](`https://github.com/vuejs/vue-loader/issues/1246`)) ([bffacd5](vuejs/vue-loader@bffacd5)) * warn missing plugin ([068bb81](vuejs/vue-loader@068bb81)) --- ### [`v15.0.11`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​15012httpsgithubcomvuejsvue-loadercomparev15011v15012-2018-05-18) [Compare Source](vuejs/vue-loader@1c54780...bde7db7) ##### Bug Fixes * ignore attrs that might interfere with query generation ([3a37269](vuejs/vue-loader@3a37269)), closes [vuejs/vue-cli#​1324](`https://github.com/vuejs/vue-cli/issues/1324`) --- ### [`v15.0.10`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​15010httpsgithubcomvuejsvue-loadercomparev1509v15010-2018-05-11) [Compare Source](vuejs/vue-loader@af7d5c2...1c54780) ##### Bug Fixes * improve HMR reliability ([52012cd](vuejs/vue-loader@52012cd)) --- ### [`v15.0.9`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​15011httpsgithubcomvuejsvue-loadercomparev1509v15011-2018-05-15) [Compare Source](vuejs/vue-loader@98a1f19...af7d5c2) ##### Bug Fixes * improve HMR reliability ([4ccd96f](vuejs/vue-loader@4ccd96f)) --- ### [`v15.0.8`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1509httpsgithubcomvuejsvue-loadercomparev1508v1509-2018-05-04) [Compare Source](vuejs/vue-loader@1d610e6...98a1f19) ##### Bug Fixes * shadowMode still has to be an option ([4529f83](vuejs/vue-loader@4529f83)) --- ### [`v15.0.7`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1508httpsgithubcomvuejsvue-loadercomparev1507v1508-2018-05-04) [Compare Source](vuejs/vue-loader@653d8f8...1d610e6) ##### Bug Fixes * avoid mutating original rules array ([14bfc01](vuejs/vue-loader@14bfc01)), closes [#​1286](`https://github.com/vuejs/vue-loader/issues/1286`) --- ### [`v15.0.6`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1507httpsgithubcomvuejsvue-loadercomparev1506v1507-2018-05-03) [Compare Source](vuejs/vue-loader@3c02f26...653d8f8) ##### Bug Fixes * stylePostLoader injection for windows flat node_modules ([a9a4412](vuejs/vue-loader@a9a4412)), closes [#​1284](`https://github.com/vuejs/vue-loader/issues/1284`) --- ### [`v15.0.5`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1506httpsgithubcomvuejsvue-loadercomparev1505v1506-2018-05-02) [Compare Source](vuejs/vue-loader@998a573...3c02f26) ##### Bug Fixes * duplicate loaders when using src import with loader options ([37329e1](vuejs/vue-loader@37329e1)), closes [#​1278](`https://github.com/vuejs/vue-loader/issues/1278`) --- ### [`v15.0.4`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1505httpsgithubcomvuejsvue-loadercomparev1504v1505-2018-04-30) [Compare Source](vuejs/vue-loader@36d18e4...998a573) ##### Bug Fixes * ignore VueLoaderPlugin check when using thread-loader ([#​1268](`https://github.com/vuejs/vue-loader/issues/1268`)) ([476f466](vuejs/vue-loader@476f466)), closes [#​1267](`https://github.com/vuejs/vue-loader/issues/1267`) --- ### [`v15.0.3`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1504httpsgithubcomvuejsvue-loadercomparev1503v1504-2018-04-27) [Compare Source](vuejs/vue-loader@d192945...36d18e4) ##### Bug Fixes * enable whitelist in exclude function ([5b0e392](vuejs/vue-loader@5b0e392)) --- ### [`v15.0.2`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1503httpsgithubcomvuejsvue-loadercomparev1502v1503-2018-04-26) [Compare Source](vuejs/vue-loader@ee4d8ab...d192945) ##### Bug Fixes * handle rule.use being a string (ref: [#​1256](`https://github.com/vuejs/vue-loader/issues/1256`)) ([fc2ba27](vuejs/vue-loader@fc2ba27)) --- ### [`v15.0.1`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1510httpsgithubcomvuejsvue-loadercomparev15012v1510-2018-05-19) [Compare Source](vuejs/vue-loader@v15.0.0...ee4d8ab) ##### Performance Improvements * avoid duplicate linting when used with eslint-loader ([3d07f81](vuejs/vue-loader@3d07f81)) #### [15.0.12](vuejs/vue-loader@v15.0.11...v15.0.12) (2018-05-18) ##### Bug Fixes * ignore attrs that might interfere with query generation ([3a37269](vuejs/vue-loader@3a37269)), closes [vuejs/vue-cli#​1324](`https://github.com/vuejs/vue-cli/issues/1324`) #### [15.0.11](vuejs/vue-loader@v15.0.9...v15.0.11) (2018-05-15) ##### Bug Fixes * improve HMR reliability ([4ccd96f](vuejs/vue-loader@4ccd96f)) #### [15.0.10](vuejs/vue-loader@v15.0.9...v15.0.10) (2018-05-11) ##### Bug Fixes * improve HMR reliability ([52012cd](vuejs/vue-loader@52012cd)) #### [15.0.9](vuejs/vue-loader@v15.0.8...v15.0.9) (2018-05-04) ##### Bug Fixes * shadowMode still has to be an option ([4529f83](vuejs/vue-loader@4529f83)) #### [15.0.8](vuejs/vue-loader@v15.0.7...v15.0.8) (2018-05-04) ##### Bug Fixes * avoid mutating original rules array ([14bfc01](vuejs/vue-loader@14bfc01)), closes [#​1286](`https://github.com/vuejs/vue-loader/issues/1286`) #### [15.0.7](vuejs/vue-loader@v15.0.6...v15.0.7) (2018-05-03) ##### Bug Fixes * stylePostLoader injection for windows flat node_modules ([a9a4412](vuejs/vue-loader@a9a4412)), closes [#​1284](`https://github.com/vuejs/vue-loader/issues/1284`) #### [15.0.6](vuejs/vue-loader@v15.0.5...v15.0.6) (2018-05-02) ##### Bug Fixes * duplicate loaders when using src import with loader options ([37329e1](vuejs/vue-loader@37329e1)), closes [#​1278](`https://github.com/vuejs/vue-loader/issues/1278`) #### [15.0.5](vuejs/vue-loader@v15.0.4...v15.0.5) (2018-04-30) ##### Bug Fixes * ignore VueLoaderPlugin check when using thread-loader ([#​1268](`https://github.com/vuejs/vue-loader/issues/1268`)) ([476f466](vuejs/vue-loader@476f466)), closes [#​1267](`https://github.com/vuejs/vue-loader/issues/1267`) #### [15.0.4](vuejs/vue-loader@v15.0.3...v15.0.4) (2018-04-27) ##### Bug Fixes * enable whitelist in exclude function ([5b0e392](vuejs/vue-loader@5b0e392)) #### [15.0.3](vuejs/vue-loader@v15.0.2...v15.0.3) (2018-04-26) ##### Bug Fixes * handle rule.use being a string (ref: [#​1256](`https://github.com/vuejs/vue-loader/issues/1256`)) ([fc2ba27](vuejs/vue-loader@fc2ba27)) #### [15.0.2](vuejs/vue-loader@v15.0.1...v15.0.2) (2018-04-26) ##### Bug Fixes * remove resource field in cloned rules (fix [#​1254](`https://github.com/vuejs/vue-loader/issues/1254`)) ([35ca03f](vuejs/vue-loader@35ca03f)) #### [15.0.1](vuejs/vue-loader@v15.0.0...v15.0.1) (2018-04-25) ##### Bug Fixes * prioritize .vue rules in plugin (fix [#​1246](`https://github.com/vuejs/vue-loader/issues/1246`)) ([bffacd5](vuejs/vue-loader@bffacd5)) * warn missing plugin ([068bb81](vuejs/vue-loader@068bb81)) --- ### [`v15.0.0`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1500httpsgithubcomvuejsvue-loadercomparev1500-rc2v1500-2018-04-24) [Compare Source](vuejs/vue-loader@6430bc0...v15.0.0) ##### Bug Fixes * compat with null-loader (close [#​1239](`https://github.com/vuejs/vue-loader/issues/1239`)) ([5cd5f6f](vuejs/vue-loader@5cd5f6f)) ##### Features * support declaring rules using .vue.html (ref [#​1238](`https://github.com/vuejs/vue-loader/issues/1238`)) ([a3af6b3](vuejs/vue-loader@a3af6b3)) --- </details> --- This PR has been generated by [Renovate Bot](https://renovatebot.com).
This Pull Request updates dependency [vue-loader](https://github.com/vuejs/vue-loader) from `^14.2.3` to `^15.0.0` <details> <summary>Release Notes</summary> ### [`v15.2.4`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1524httpsgithubcomvuejsvue-loadercomparev1522v1524-2018-06-01) [Compare Source](vuejs/vue-loader@v15.2.3...v15.2.4) ##### Bug Fixes * ensure plugin error is emitted only once ([0b006a3](vuejs/vue-loader@0b006a3)) * fix unexpected error when options of cache-loader contains ! ([#​1334](`https://github.com/vuejs/vue-loader/issues/1334`)) ([c4a2719](vuejs/vue-loader@c4a2719)) * use constant plugin NS ([0fb5172](vuejs/vue-loader@0fb5172)), closes [#​1331](`https://github.com/vuejs/vue-loader/issues/1331`) ##### Features * inject issuerPath to resourceQuery for custom block src imports ([#​1313](`https://github.com/vuejs/vue-loader/issues/1313`)) ([a004e30](vuejs/vue-loader@a004e30)) --- ### [`v15.2.3`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1523httpsgithubcomvuejsvue-loadercomparev1522v1523-2018-06-01) [Compare Source](vuejs/vue-loader@91f420b...v15.2.3) ##### Bug Fixes * ensure plugin error is emitted only once ([0b006a3](vuejs/vue-loader@0b006a3)) * use constant plugin NS ([0fb5172](vuejs/vue-loader@0fb5172)), closes [#​1331](`https://github.com/vuejs/vue-loader/issues/1331`) ##### Features * inject issuerPath to resourceQuery for custom block src imports ([#​1313](`https://github.com/vuejs/vue-loader/issues/1313`)) ([a004e30](vuejs/vue-loader@a004e30)) --- ### [`v15.2.2`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1524httpsgithubcomvuejsvue-loadercomparev1522v1524-2018-06-01) [Compare Source](vuejs/vue-loader@v15.2.1...91f420b) ##### Bug Fixes * ensure plugin error is emitted only once ([0b006a3](vuejs/vue-loader@0b006a3)) * fix unexpected error when options of cache-loader contains ! ([#​1334](`https://github.com/vuejs/vue-loader/issues/1334`)) ([c4a2719](vuejs/vue-loader@c4a2719)) * use constant plugin NS ([0fb5172](vuejs/vue-loader@0fb5172)), closes [#​1331](`https://github.com/vuejs/vue-loader/issues/1331`) ##### Features * inject issuerPath to resourceQuery for custom block src imports ([#​1313](`https://github.com/vuejs/vue-loader/issues/1313`)) ([a004e30](vuejs/vue-loader@a004e30)) --- ### [`v15.2.1`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1521httpsgithubcomvuejsvue-loadercomparev1520v1521-2018-05-25) [Compare Source](vuejs/vue-loader@v15.2.0...v15.2.1) ##### Bug Fixes * ensure template cache uses unique identifier ([bdb13be](vuejs/vue-loader@bdb13be)) --- ### [`v15.2.0`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1520httpsgithubcomvuejsvue-loadercomparev1510v1520-2018-05-22) [Compare Source](vuejs/vue-loader@v15.1.0...v15.2.0) ##### Features * enable template compile caching ([28e0fd3](vuejs/vue-loader@28e0fd3)) --- ### [`v15.1.0`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1520httpsgithubcomvuejsvue-loadercomparev1510v1520-2018-05-22) [Compare Source](vuejs/vue-loader@b1ed161...v15.1.0) ##### Features * enable template compile caching ([28e0fd3](vuejs/vue-loader@28e0fd3)) --- ### [`v15.0.12`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1510httpsgithubcomvuejsvue-loadercomparev15012v1510-2018-05-19) [Compare Source](vuejs/vue-loader@bde7db7...b1ed161) ##### Performance Improvements * avoid duplicate linting when used with eslint-loader ([3d07f81](vuejs/vue-loader@3d07f81)) #### [15.0.12](vuejs/vue-loader@v15.0.11...v15.0.12) (2018-05-18) ##### Bug Fixes * ignore attrs that might interfere with query generation ([3a37269](vuejs/vue-loader@3a37269)), closes [vuejs/vue-cli#​1324](`https://github.com/vuejs/vue-cli/issues/1324`) #### [15.0.11](vuejs/vue-loader@v15.0.9...v15.0.11) (2018-05-15) ##### Bug Fixes * improve HMR reliability ([4ccd96f](vuejs/vue-loader@4ccd96f)) #### [15.0.10](vuejs/vue-loader@v15.0.9...v15.0.10) (2018-05-11) ##### Bug Fixes * improve HMR reliability ([52012cd](vuejs/vue-loader@52012cd)) #### [15.0.9](vuejs/vue-loader@v15.0.8...v15.0.9) (2018-05-04) ##### Bug Fixes * shadowMode still has to be an option ([4529f83](vuejs/vue-loader@4529f83)) #### [15.0.8](vuejs/vue-loader@v15.0.7...v15.0.8) (2018-05-04) ##### Bug Fixes * avoid mutating original rules array ([14bfc01](vuejs/vue-loader@14bfc01)), closes [#​1286](`https://github.com/vuejs/vue-loader/issues/1286`) #### [15.0.7](vuejs/vue-loader@v15.0.6...v15.0.7) (2018-05-03) ##### Bug Fixes * stylePostLoader injection for windows flat node_modules ([a9a4412](vuejs/vue-loader@a9a4412)), closes [#​1284](`https://github.com/vuejs/vue-loader/issues/1284`) #### [15.0.6](vuejs/vue-loader@v15.0.5...v15.0.6) (2018-05-02) ##### Bug Fixes * duplicate loaders when using src import with loader options ([37329e1](vuejs/vue-loader@37329e1)), closes [#​1278](`https://github.com/vuejs/vue-loader/issues/1278`) #### [15.0.5](vuejs/vue-loader@v15.0.4...v15.0.5) (2018-04-30) ##### Bug Fixes * ignore VueLoaderPlugin check when using thread-loader ([#​1268](`https://github.com/vuejs/vue-loader/issues/1268`)) ([476f466](vuejs/vue-loader@476f466)), closes [#​1267](`https://github.com/vuejs/vue-loader/issues/1267`) #### [15.0.4](vuejs/vue-loader@v15.0.3...v15.0.4) (2018-04-27) ##### Bug Fixes * enable whitelist in exclude function ([5b0e392](vuejs/vue-loader@5b0e392)) #### [15.0.3](vuejs/vue-loader@v15.0.2...v15.0.3) (2018-04-26) ##### Bug Fixes * handle rule.use being a string (ref: [#​1256](`https://github.com/vuejs/vue-loader/issues/1256`)) ([fc2ba27](vuejs/vue-loader@fc2ba27)) #### [15.0.2](vuejs/vue-loader@v15.0.1...v15.0.2) (2018-04-26) ##### Bug Fixes * remove resource field in cloned rules (fix [#​1254](`https://github.com/vuejs/vue-loader/issues/1254`)) ([35ca03f](vuejs/vue-loader@35ca03f)) #### [15.0.1](vuejs/vue-loader@v15.0.0...v15.0.1) (2018-04-25) ##### Bug Fixes * prioritize .vue rules in plugin (fix [#​1246](`https://github.com/vuejs/vue-loader/issues/1246`)) ([bffacd5](vuejs/vue-loader@bffacd5)) * warn missing plugin ([068bb81](vuejs/vue-loader@068bb81)) --- ### [`v15.0.11`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​15012httpsgithubcomvuejsvue-loadercomparev15011v15012-2018-05-18) [Compare Source](vuejs/vue-loader@1c54780...bde7db7) ##### Bug Fixes * ignore attrs that might interfere with query generation ([3a37269](vuejs/vue-loader@3a37269)), closes [vuejs/vue-cli#​1324](`https://github.com/vuejs/vue-cli/issues/1324`) --- ### [`v15.0.10`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​15010httpsgithubcomvuejsvue-loadercomparev1509v15010-2018-05-11) [Compare Source](vuejs/vue-loader@af7d5c2...1c54780) ##### Bug Fixes * improve HMR reliability ([52012cd](vuejs/vue-loader@52012cd)) --- ### [`v15.0.9`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​15011httpsgithubcomvuejsvue-loadercomparev1509v15011-2018-05-15) [Compare Source](vuejs/vue-loader@98a1f19...af7d5c2) ##### Bug Fixes * improve HMR reliability ([4ccd96f](vuejs/vue-loader@4ccd96f)) --- ### [`v15.0.8`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1509httpsgithubcomvuejsvue-loadercomparev1508v1509-2018-05-04) [Compare Source](vuejs/vue-loader@1d610e6...98a1f19) ##### Bug Fixes * shadowMode still has to be an option ([4529f83](vuejs/vue-loader@4529f83)) --- ### [`v15.0.7`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1508httpsgithubcomvuejsvue-loadercomparev1507v1508-2018-05-04) [Compare Source](vuejs/vue-loader@653d8f8...1d610e6) ##### Bug Fixes * avoid mutating original rules array ([14bfc01](vuejs/vue-loader@14bfc01)), closes [#​1286](`https://github.com/vuejs/vue-loader/issues/1286`) --- ### [`v15.0.6`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1507httpsgithubcomvuejsvue-loadercomparev1506v1507-2018-05-03) [Compare Source](vuejs/vue-loader@3c02f26...653d8f8) ##### Bug Fixes * stylePostLoader injection for windows flat node_modules ([a9a4412](vuejs/vue-loader@a9a4412)), closes [#​1284](`https://github.com/vuejs/vue-loader/issues/1284`) --- ### [`v15.0.5`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1506httpsgithubcomvuejsvue-loadercomparev1505v1506-2018-05-02) [Compare Source](vuejs/vue-loader@998a573...3c02f26) ##### Bug Fixes * duplicate loaders when using src import with loader options ([37329e1](vuejs/vue-loader@37329e1)), closes [#​1278](`https://github.com/vuejs/vue-loader/issues/1278`) --- ### [`v15.0.4`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1505httpsgithubcomvuejsvue-loadercomparev1504v1505-2018-04-30) [Compare Source](vuejs/vue-loader@36d18e4...998a573) ##### Bug Fixes * ignore VueLoaderPlugin check when using thread-loader ([#​1268](`https://github.com/vuejs/vue-loader/issues/1268`)) ([476f466](vuejs/vue-loader@476f466)), closes [#​1267](`https://github.com/vuejs/vue-loader/issues/1267`) --- ### [`v15.0.3`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1504httpsgithubcomvuejsvue-loadercomparev1503v1504-2018-04-27) [Compare Source](vuejs/vue-loader@d192945...36d18e4) ##### Bug Fixes * enable whitelist in exclude function ([5b0e392](vuejs/vue-loader@5b0e392)) --- ### [`v15.0.2`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1503httpsgithubcomvuejsvue-loadercomparev1502v1503-2018-04-26) [Compare Source](vuejs/vue-loader@ee4d8ab...d192945) ##### Bug Fixes * handle rule.use being a string (ref: [#​1256](`https://github.com/vuejs/vue-loader/issues/1256`)) ([fc2ba27](vuejs/vue-loader@fc2ba27)) --- ### [`v15.0.1`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1510httpsgithubcomvuejsvue-loadercomparev15012v1510-2018-05-19) [Compare Source](vuejs/vue-loader@v15.0.0...ee4d8ab) ##### Performance Improvements * avoid duplicate linting when used with eslint-loader ([3d07f81](vuejs/vue-loader@3d07f81)) #### [15.0.12](vuejs/vue-loader@v15.0.11...v15.0.12) (2018-05-18) ##### Bug Fixes * ignore attrs that might interfere with query generation ([3a37269](vuejs/vue-loader@3a37269)), closes [vuejs/vue-cli#​1324](`https://github.com/vuejs/vue-cli/issues/1324`) #### [15.0.11](vuejs/vue-loader@v15.0.9...v15.0.11) (2018-05-15) ##### Bug Fixes * improve HMR reliability ([4ccd96f](vuejs/vue-loader@4ccd96f)) #### [15.0.10](vuejs/vue-loader@v15.0.9...v15.0.10) (2018-05-11) ##### Bug Fixes * improve HMR reliability ([52012cd](vuejs/vue-loader@52012cd)) #### [15.0.9](vuejs/vue-loader@v15.0.8...v15.0.9) (2018-05-04) ##### Bug Fixes * shadowMode still has to be an option ([4529f83](vuejs/vue-loader@4529f83)) #### [15.0.8](vuejs/vue-loader@v15.0.7...v15.0.8) (2018-05-04) ##### Bug Fixes * avoid mutating original rules array ([14bfc01](vuejs/vue-loader@14bfc01)), closes [#​1286](`https://github.com/vuejs/vue-loader/issues/1286`) #### [15.0.7](vuejs/vue-loader@v15.0.6...v15.0.7) (2018-05-03) ##### Bug Fixes * stylePostLoader injection for windows flat node_modules ([a9a4412](vuejs/vue-loader@a9a4412)), closes [#​1284](`https://github.com/vuejs/vue-loader/issues/1284`) #### [15.0.6](vuejs/vue-loader@v15.0.5...v15.0.6) (2018-05-02) ##### Bug Fixes * duplicate loaders when using src import with loader options ([37329e1](vuejs/vue-loader@37329e1)), closes [#​1278](`https://github.com/vuejs/vue-loader/issues/1278`) #### [15.0.5](vuejs/vue-loader@v15.0.4...v15.0.5) (2018-04-30) ##### Bug Fixes * ignore VueLoaderPlugin check when using thread-loader ([#​1268](`https://github.com/vuejs/vue-loader/issues/1268`)) ([476f466](vuejs/vue-loader@476f466)), closes [#​1267](`https://github.com/vuejs/vue-loader/issues/1267`) #### [15.0.4](vuejs/vue-loader@v15.0.3...v15.0.4) (2018-04-27) ##### Bug Fixes * enable whitelist in exclude function ([5b0e392](vuejs/vue-loader@5b0e392)) #### [15.0.3](vuejs/vue-loader@v15.0.2...v15.0.3) (2018-04-26) ##### Bug Fixes * handle rule.use being a string (ref: [#​1256](`https://github.com/vuejs/vue-loader/issues/1256`)) ([fc2ba27](vuejs/vue-loader@fc2ba27)) #### [15.0.2](vuejs/vue-loader@v15.0.1...v15.0.2) (2018-04-26) ##### Bug Fixes * remove resource field in cloned rules (fix [#​1254](`https://github.com/vuejs/vue-loader/issues/1254`)) ([35ca03f](vuejs/vue-loader@35ca03f)) #### [15.0.1](vuejs/vue-loader@v15.0.0...v15.0.1) (2018-04-25) ##### Bug Fixes * prioritize .vue rules in plugin (fix [#​1246](`https://github.com/vuejs/vue-loader/issues/1246`)) ([bffacd5](vuejs/vue-loader@bffacd5)) * warn missing plugin ([068bb81](vuejs/vue-loader@068bb81)) --- ### [`v15.0.0`](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md#​1500httpsgithubcomvuejsvue-loadercomparev1500-rc2v1500-2018-04-24) [Compare Source](vuejs/vue-loader@6430bc0...v15.0.0) ##### Bug Fixes * compat with null-loader (close [#​1239](`https://github.com/vuejs/vue-loader/issues/1239`)) ([5cd5f6f](vuejs/vue-loader@5cd5f6f)) ##### Features * support declaring rules using .vue.html (ref [#​1238](`https://github.com/vuejs/vue-loader/issues/1238`)) ([a3af6b3](vuejs/vue-loader@a3af6b3)) --- </details> --- This PR has been generated by [Renovate Bot](https://renovatebot.com).
Hi, i have this error:
|
@papac, i have the same error, did you solve this? |
It's strange. It was a breeze to work with Vue in ~2017 and I loved it instantly, and was the first repo I actually starred when I didn't even bother to star mine, but since vue-loader 15.x everything is broken and a mess, now it feels like this library is another react/angular, just complex and unusable. Has anyone figured out how to fix this? |
"Same error" doesn't help anyone here because your issue might not be the same one as the original. It depends on your setup.
|
Version
15.0.0、15.0.6
Reproduction link
https://coding.net/u/huzedong2011/p/html/git
Steps to reproduce
1、npm i
2 、npm run build
What is expected?
What is actually happening?
ERROR in ./src/pages/home/index.vue?vue&type=style&index=0&lang=css (./node_modules/_vue-loader@15.0.6@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_vue-style-loader@4.1.0@vue-style-loader!./node_modules/_css-loader@0.28.11@css-loader!./node_modules/_postcss-loader@2.1.4@postcss-loader/lib!./node_modules/_vue-loader@15.0.6@vue-loader/lib??vue-loader-options!./src/pages/home/index.vue?vue&type=style&index=0&lang=css)
Module build failed: CssSyntaxError: D:\www\html\src\pages\home\index.vue:5:1: Unknown word
at Input.error (D:\www\html\node_modules_postcss@6.0.22@postcss\lib\input.js:119:22)
at Parser.unknownWord (D:\www\html\node_modules_postcss@6.0.22@postcss\lib\parser.js:506:26)
at Parser.other (D:\www\html\node_modules_postcss@6.0.22@postcss\lib\parser.js:171:18)
at Parser.parse (D:\www\html\node_modules_postcss@6.0.22@postcss\lib\parser.js:84:26)
at parse (D:\www\html\node_modules_postcss@6.0.22@postcss\lib\parse.js:24:16)
at new LazyResult (D:\www\html\node_modules_postcss@6.0.22@postcss\lib\lazy-result.js:70:24)
at Processor.process (D:\www\html\node_modules_postcss@6.0.22@postcss\lib\processor.js:117:12)
at compileStyle (D:\www\html\node_modules_@[email protected]@@VUE\component-compiler-utils\dist\compileStyle.js:34:35)
at Object.module.exports (D:\www\html\node_modules_vue-loader@15.0.6@vue-loader\lib\loaders\stylePostLoader.js:9:33)
@ ./src/pages/home/index.vue?vue&type=style&index=0&lang=css 1:0-438 1:454-457 1:459-894 1:459-894
@ ./src/pages/home/index.vue
@ ./src/router/index.js
@ ./src/index.js
@ multi ./node_modules/_webpack-dev-server@3.1.4@webpack-dev-server/client?http://0.0.0.0:8080 webpack/hot/dev-server ./src
V14.2.2 success
V15.0.0 error
The text was updated successfully, but these errors were encountered: