javascript - 我该如何解决 dev webpack style hot loader js 错误

标签 javascript css vue.js nativescript nativescript-vue

当我运行此代码时,我是 native 脚本的新手

<template>
    <view class="container">
        <text class="text-color-primary">My Vue Native Apps</text>
    </view>
</template>
<style>
    .container{
        background-color:white;
        align-items:center;
        justify-content=center;
        flex:1;
    }
    .text-color-primary{
        color:blue;
    }
</style>

并且有错误结果:

ERROR in ./components/Home.vue?vue&type=style&index=0&lang=css& (../node_modules/nativescript-dev-webpack/style-hot-loader.js!../node_modules/nativescript-dev-webpack/apply-css-loader.js!../node_modules/css-loader/dist/cjs.js??ref--3-2!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/vue-loader/lib??vue-loader-options!./components/Home.vue?vue&type=style&index=0&lang=css&)
Module build failed (from ../node_modules/vue-loader/lib/loaders/stylePostLoader.js):
CssSyntaxError: C:\Users\a\basic\components\components\Home.vue:11:0: Unknown word

求助

最佳答案

可能与GitHub上的这个问题有关:vue-loader not installed correctly

关于javascript - 我该如何解决 dev webpack style hot loader js 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60537826/

相关文章:

javascript - CanvasRenderingContext2D.drawImage() 在大 Canvas 上的 Chrome 中非常慢

javascript - 如何在自定义对话框中聚焦文本框,以便光标在框中闪烁

css - 三列小布局 Bootstrap

html - 带有 clipPath 的 WebKit CSS3 转换和 SVG foreignObject 溢出

javascript - vue-router 注册全局组件的方法

javascript - Axios 不在请求中传递 header

javascript - 观看未按预期工作

javascript - react 内联样式错误

c# - 如何使用 css 或 javascript 将 ASP 下拉列表设置为只读?

javascript - 如何在 JQTouch 工具栏 div 中水平显示列表元素(可能使用 CSS)