Skip to content
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

wrong with stylus #25

Open
lzdyes opened this issue Mar 9, 2018 · 1 comment
Open

wrong with stylus #25

lzdyes opened this issue Mar 9, 2018 · 1 comment

Comments

@lzdyes
Copy link

lzdyes commented Mar 9, 2018

exp:

index.vue :
<style lang="stylus" src="./index.styl" scoped></style>

index.styl :

.tz
font-size 20px

use

yarn run build

ERROR in ./node_modules/weex-vue-loader/lib/style-loader.js!./node_modules/stylus-loader?{"sourceMap":false}!./node_modules/weex-vue-loader/lib/style-rewriter.js?id=data-v-e64d6cf0!./src/components/hello/index.styl
Module build failed: CssSyntaxError: D:\Study\Weex\test2\src\components\hello\index.styl:1:1: Unknown word
at Input.error (D:\Study\Weex\test2\node_modules\weex-vue-loader\node_modules\postcss\lib\input.js:113:22)
at Parser.unknownWord (D:\Study\Weex\test2\node_modules\weex-vue-loader\node_modules\postcss\lib\parser.js:506:26)
at Parser.other (D:\Study\Weex\test2\node_modules\weex-vue-loader\node_modules\postcss\lib\parser.js:171:18)
at Parser.parse (D:\Study\Weex\test2\node_modules\weex-vue-loader\node_modules\postcss\lib\parser.js:84:26)
at parse (D:\Study\Weex\test2\node_modules\weex-vue-loader\node_modules\postcss\lib\parse.js:24:16)
at new LazyResult (D:\Study\Weex\test2\node_modules\weex-vue-loader\node_modules\postcss\lib\lazy-result.js:70:24)
at Processor.process (D:\Study\Weex\test2\node_modules\weex-vue-loader\node_modules\postcss\lib\processor.js:117:12)
at Object.module.exports (D:\Study\Weex\test2\node_modules\weex-vue-loader\lib\style-rewriter.js:96:6)
@ ./src/components/hello/index.vue 5:20-212
@ ./src/router.js
@ ./src/entry.js

funny ->

index.styl :

.tz
font-size: 20px

add

:

is ok!

@DONGChuan
Copy link

The only solution for the moment is by adding ":", and also ";" at the end of each line. It seems a "strict" mode of stylus have been implemented here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants