vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 152 forks source link

Adding Lost grid framework for postcss #33

Open russweas opened 8 years ago

russweas commented 8 years ago

For some resason I can't get the lost grid framework to work with postcss. Here is my vue config file:

var postStylus = require('poststylus');

module.exports = {
  postcss: [postStylus(['lost'])]
}

Error:

TypeError: Cannot read property 'filename' of undefined
    at /Users/rweas/Projects/Frontline/node_modules/poststylus/index.js:31:33
    at LazyResult.run (/Users/rweas/Projects/Frontline/node_modules/vueify/node_modules/postcss/lib/lazy-result.js:201:20)
    at /Users/rweas/Projects/Frontline/node_modules/vueify/node_modules/postcss/lib/lazy-result.js:115:37
    at LazyResult.asyncTick (/Users/rweas/Projects/Frontline/node_modules/vueify/node_modules/postcss/lib/lazy-result.js:129:15)
    at processing.Promise.then._this2.processed (/Users/rweas/Projects/Frontline/node_modules/vueify/node_modules/postcss/lib/lazy-result.js:155:20)
    at lib$es6$promise$$internal$$initializePromise (/Users/rweas/Projects/Frontline/node_modules/vueify/node_modules/es6-promise/dist/es6-promise.js:373:9)
    at new lib$es6$promise$promise$$Promise (/Users/rweas/Projects/Frontline/node_modules/vueify/node_modules/es6-promise/dist/es6-promise.js:664:9)
    at LazyResult.async (/Users/rweas/Projects/Frontline/node_modules/vueify/node_modules/postcss/lib/lazy-result.js:152:27)
    at LazyResult.then (/Users/rweas/Projects/Frontline/node_modules/vueify/node_modules/postcss/lib/lazy-result.js:75:21)
    at module.exports (/Users/rweas/Projects/Frontline/node_modules/vueify/lib/style-rewriter.js:66:8)
[12:10:48] gulp-notify: [Laravel Elixir] Browserify Failed!: Cannot read property 'filename' of undefined while parsing file: /Users/rweas/Projects/Frontline/resources/assets/js/components/Bar.vue

It does work with just normal stylus though.

EnMod commented 8 years ago
var lost = require('lost')

module.exports = {
    postcss: [lost()]
}

in a vue.config.js file in the root of the project fails to work as well.

edgarvaldez99 commented 6 years ago

same issue