对于一个新项目 vue-cal 在 Nuxt2 中安装得很好。但是当我尝试将它安装在我的一个旧项目中时,它在日期和周数中显示
undefined
。"dependencies": {
"@braid/vue-formulate": "^2.4.3",
"@chenfengyuan/vue-countdown": "^1.1.5",
"@grpc/grpc-js": "^1.6.2",
"@hexdigital/nuxt-intercom": "0.0.9",
"@improbable-eng/grpc-web": "^0.14.0",
"@mercury-labs1/augmentive-node-proto": "^1.3.68",
"@mercury-labs1/augmentive-proto": "^1.3.68",
"@netsells/nuxt-hotjar": "^0.1.2",
"@nuxtjs/auth": "^4.9.1",
"@nuxtjs/axios": "^5.13.6",
"@nuxtjs/dotenv": "^1.4.1",
"@nuxtjs/gtm": "^2.4.0",
"@nuxtjs/robots": "^2.5.0",
"@nuxtjs/sentry": "^4.3.5",
"@nuxtjs/svg-sprite": "^0.4.12",
"@riophae/vue-treeselect": "^0.4.0",
"@tryghost/content-api": "^1.5.13",
"@twilio/rtc-diagnostics": "^1.0.0",
"algoliasearch": "^4.11.0",
"axios": "^0.21.1",
"babel-runtime": "^6.26.0",
"buefy": "^0.9.4",
"chart.js": "^2.9.4",
"defu": "^5.0.0",
"disable-scroll": "^0.5.1",
"flickity": "^2.2.1",
"getstream": "^7.4.0",
"google-protobuf": "^3.14.0-rc.1",
"grpc-web": "^1.2.1",
"grpc-web-node-http-transport": "0.0.1",
"gsap": "^3.7.0",
"instantsearch.css": "^7.4.5",
"lodash": "^4.17.21",
"mapbox-gl": "^2.6.1",
"moment": "^2.28.0",
"moment-timezone": "^0.5.34",
"nuxt": "^2.0.0",
"nuxt-buefy": "^0.4.8",
"nuxt-facebook-pixel-module": "^1.5.0",
"nuxt-logrocket": "^1.5.2",
"posthog-js": "^1.20.0",
"screenfull": "^5.0.2",
"socket.io-client": "1.4.8",
"stream-chat": "^6.2.0",
"timezones-list": "^1.1.1",
"twilio-chat": "^4.0.0",
"twilio-video": "^2.18.0",
"v-calendar": "^2.3.0",
"vue-cal": "^3.11.0",
"vue-chartjs": "^3.5.1",
"vue-core-video-player": "^0.2.0",
"vue-device-detector": "^1.1.6",
"vue-flickity": "^1.2.1",
"vue-instantsearch": "^4.1.1",
"vue-line-clamp": "^1.3.2",
"vue-loading-skeleton": "^1.1.9",
"vue-moment": "^4.1.0",
"vue-progress": "^0.2.1",
"vue-radial-progress": "^0.3.2",
"vue-read-more": "^1.1.1",
"vue-select": "^3.11.0",
"vue-slider-component": "^3.2.11",
"vue-social-sharing": "^3.0.8",
"vue-switches": "^2.0.1",
"vue-tel-input": "^4.4.2",
"vue2-editor": "^2.10.2",
"vue2-perfect-scrollbar": "^1.5.0",
"vue2-smooth-scroll": "^1.6.0",
"vue2-timepicker": "^1.1.5",
"vuejs-paginate": "^2.1.0"
},
"devDependencies": {
"@babel/core": "^7.13.1",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-transform-runtime": "^7.13.4",
"@babel/preset-env": "^7.12.17",
"@nuxtjs/style-resources": "^1.0.0",
"@types/google-protobuf": "^3.15.5",
"cypress": "^7.5.0",
"eslint-plugin-cypress": "^2.11.3",
"node-sass": "^4.14.1",
"nuxt-purgecss": "^1.0.0",
"sass-loader": "^8.0.2",
"start-server-and-test": "^1.12.2"
}
OP 通过升级
nuxt
和 vue
模块解决了该问题!
请问您做了哪些配置?您使用的是 nuxtjs 和 vue-js 的哪个版本