Skip to content

unparsed sass variable from fieldSwitch in vfg.css #449

Closed
@lmj0011

Description

@lmj0011
  • I'm submitting a ...
    • bug report
  • Do you want to request a feature or report a bug?
    a bug
  • What is the current behavior?

dist/vfg.css contains an unparsed variable $field-switch-height

see: https://github.com/vue-generators/vue-form-generator/blob/v2.2.2/dist/vfg.css

which means importing this stylesheet into a vue component like:

import "vue-form-generator/dist/vfg-core.css"

throws an error (in my case, I'm using vue.js via the nuxt.js framework )

NuxtServerError
Module build failed: Error: Lexical error on line 1. Unrecognized text. 100% - ($field-switch-height --------^ at Parser.parseError ...

this error also prevents the "switch" componet of a form from displaying properly, like rendered in this demo of vue-form-generator demo

  • What is the expected behavior?

expecting the css file vue-form-generator/dist/vfg-core.css to import without error, and for the Switch component to render like in the vue-form-generator demo

screenshot-jsfiddle net-2018 04 27-10-58-21

  • Please tell us about your environment:

    • Version: [2.2.2 ]
    • Browser: [all ]
    • Language: [ES6/7 | ES5]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions