gpt4 book ai didi

vue.js - vue 3 + vuetify 3 : Unknown node type in node creation at Array. map (<匿名>)

转载 作者:行者123 更新时间:2023-12-02 15:55:39 34 4
gpt4 key购买 nike

我正在从 vue2 迁移到 vue3 以及 vuetify 3。但是,我无法正确设置 vuetify 3。我收到以下错误

Syntax Error: Error: Unknown node type in node creation at Array.map (anonymous)

在以下行中:

in ./node_modules/vuetify/lib/components/VList/VListItem.css
in ./node_modules/vuetify/lib/components/VCard/VCard.css
in ./node_modules/vuetify/lib/components/VBtn/VBtn.css

我尝试通过以下链接修复它

[Bug Report][3.0.0-alpha.0] Vuetify 3 'Unknown node type in node creation' bug #14179

vuetify-loader

但没有成功。

vuetify.js:

// Styles
import "@mdi/font/css/materialdesignicons.css";
import "vuetify/styles";
import colors from "vuetify/lib/util/colors";

// Vuetify
import { createVuetify } from "vuetify";

export default createVuetify({
theme: {
themes: {
options: { customProperties: true },
light: {
primary: "#FF6D00",
},
dark: {
primary: "#FFCA28",
},
},
},
icons: {
iconfont: "mdi",
},
});

main.js:

const app = createApp({
data: function () {
return {
currentRoute: window.location.pathname,
};
},
computed: {
ViewComponent() {
return routes[this.currentRoute] || NotFound;
},
},
render() {
return h(this.ViewComponent);
},
});

最佳答案

您有一个不完全支持 @supports 的旧版本的 autoprefixer (https://github.com/postcss/autoprefixer/issues/1391)。将 postcss 和 autoprefixer 更新到最新版本将修复错误。

关于vue.js - vue 3 + vuetify 3 : Unknown node type in node creation at Array. map (<匿名>),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71562299/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com