Open vovajr11 opened 1 year ago
vue3 with nuxt3 have the same problem
WARN [vite:css] Parse error on line 1: 5:33:21 p. m.
...nt-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px))))
------------------------------------------------------------------------^
Expecting end of input, "ADD", "SUB", "MUL", "DIV", got unexpected "RPAREN"
4 | * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5 | */
6 | @font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-stretch:100%;src:url(https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) ......
@jag2kn Hey) This is how I got around this problem. I get the styles when the component is rendered
useEffect(() => {
const link = document.createElement("link");
link.href =
"https://cdn.jsdelivr.net/npm/survey-core@1.9.101/defaultV2.min.css";
link.rel = "stylesheet";
document.head.appendChild(link);
link.onload = () => setIsCssLoaded(true);
return () => {
document.head.removeChild(link);
};
}, []);
Working in vue I do:
const setData = () => {
const link = document.createElement('link');
link.href = 'https://cdn.jsdelivr.net/npm/survey-core/defaultV2.min.css';
link.type = 'text/css';
link.rel = 'stylesheet';
document.head.appendChild(link);
}
onMounted(setData)
Everything works locally. When I want to build, it doesn't
Specify your