我想在vue2中安装vuex,但是我用多个赞扬行尝试了一个错误
npm安装vuex -保存
npm安装vuex@next -保存
尽管我已经更改了预期的节点版本,但是我得到了以下错误
$ npm install vuex@3 --save
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
np
我不确定这是与Nuxt JS或Vuetify有关的问题。最近,在使用Vuetify建立了一个新的Nuxt项目之后,我发现了一个与tapable.plugin相关的错误。
此错误显示在运行任何npm run命令(例如:npm run dev__)时
以下是错误:
ERROR (node:4688) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
我不知道如何修复这个错误,而且还没有任何运气,我已经尝试了各种版本。
我的package.json文件包含以下内容:
"dep
我正在尝试使用Vue I18n在我的Vue.js项目上添加国际化。
我正在使用文档(即),但我得到了以下错误消息:
[Vue warn]: Error in render: "TypeError: i18n is undefined"
found in
---> <MainNavBar> at src/components/MainNavBar.vue
<VApp>
<App> at src/App.vue
<Root> vue.runtime.esm.js:619
Nuxtjs在纱线开发过程中使用vuetify抛出大量错误Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Nuxtjs: v2.15.6 @nuxtjs/vuetify:"1.11.3","sass":"1.32.8","sass-loader":"10.2.0",
有人知道怎么修吗?
: Using / for division is deprecated and will be removed in Dart
我在TypeScript中使用Jest 27.5.1。当我尝试测试时,我得到了以下错误:
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'extend')
2 | <div>Hello</div>
3 | </template&g
我在构建nuxt应用程序时遇到了一个问题。当我运行'npm run build‘时,它显示:WARNING in The comment file "LICENSES" conflicts with an existing asset, this may lead to code corruption, please use a different name。 这是我的package.json文件: {
"scripts": {
"dev": "nuxt",
"build": "
我正在尝试安装vuetify,但它给出了这个错误: [VuetifyLoaderPlugin Error] No matching rule for vue-loader found.
Make sure there is at least one root-level rule that uses vue-loader and VuetifyLoaderPlugin is applied after VueLoaderPlugin. package.json: {
"name": "vueapp",
"version": "0.1
我正在使用武帝,并希望添加我自己的翻译按钮,例如,也使用由武帝提供的翻译。目前,我已经设置了如下所示的Vuetify配置文件:
import Vue from "vue"
import Vuetify from "vuetify"
import "vuetify/dist/vuetify.min.css"
import "@fortawesome/fontawesome-free/css/all.css"
import VueI18n from "vue-i18n"
import messages from
我们正在向一个现有的项目介绍Jest。
但是,我编写了一个测试代码示例。发生上述错误。
ReferenceError: Vue is not defined
1 | import User from "../components/modal/ad/AdAdd";
> 2 | import { mount } from "@vue/test-utils";
| ^
3 |
4 | describe("user component", () => {
5 |
这是我的第一个测试:
Heading.spec.js
import Vuetify from "vuetify";
import { shallowMount, createLocalVue } from "@vue/test-utils";
import router from "@/router";
import i18n from "@/locales";
import Heading from "@/components/Home/Heading.vue";
在我将axios import axios from "axios";导入到App.vue文件中之后,我得到了axios is defined but never used错误。我附上了错误图像和package.json代码。我安装了axios。怎么修呢?
package.json文件是:
{
"name": "myvue",
"version": "0.1.0",
"private": true,
"scripts": {
"serve"
我有和多语言的应用程序,它将切换语言通过选择输入,在两种语言之间切换区域设置,另一方面,我有两个字体家族,我想要切换时,区域设置改变。
vuetify.js
import Vue from 'vue';
import Vuetify from 'vuetify';
import 'vuetify/dist/vuetify.min.css';
import fa from '../i18n/vuetify/fa.ts';
import en from '../i18n/vuetify
我有一个项目,它有一个rails后端,一个Vue前端。我的一切都在两端之间工作,现在我正在努力添加Vuetify,以使它看起来更好。
我运行了vue install vuetify
Running completion hooks... ERROR Error: ENOENT: no such file or directory, open './draw-front/public/index.html'
Error: ENOENT: no such file or directory, open './draw-front/public/index.html'
我正在一个没有Node或Vue-cli的静态环境上进行Vue项目,我们使用CDN导入Vue、Vuetify和vue-i18n。
我们需要使用Vue-i18n来翻译Vuetify组件,如所示的。
的一个尝试,试图翻译在底部的分页部分。
我试过使用Vue.use(),但是无法让它工作,控制台中没有错误,页面上也没有翻译。
import App from '../components/App.vue.js';
import i18n from '../lang/languages.js';
import store from './store/store.js