icehaunter / vue3-datepicker

Simple datepicker component for Vue 3
https://icehaunter.github.io/vue3-datepicker/
MIT License
150 stars 153 forks source link

Why does this error prompt appear? #125

Open niulin1991 opened 2 months ago

niulin1991 commented 2 months ago

error in ./node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js

Module parse failed: Unexpected token (237:37) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | const t = o(e); | return t != null && t.$el ? t == null ? void 0 : t.$el : t;

}, hl = (e) => ({ type: "dot", ...e ?? {} }), An = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, Ga = { | prop: (e) => "${e}" prop must be enabled!, | dateArr: (e) => You need to use array as "model-value" binding in order to support "${e}"

niulin1991 commented 2 months ago

How to solve this error

niulin1991 commented 2 months ago

{ "name": "onerway3.0", "version": "1.9.8-3", "private": true, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "test:unit": "vue-cli-service test:unit", "test:e2e": "vue-cli-service test:e2e", "lint": "vue-cli-service lint" }, "dependencies": { "@element-plus/icons-vue": "^2.0.10", "@types/sortablejs": "^1.10.7", "@vuepic/vue-datepicker": "^9.0.2", "axios": "^0.21.1", "core-js": "^3.6.5", "currency-codes": "^2.1.0", "date-fns": "^2.23.0", "element-plus": "^2.2.27", "i18n-iso-countries": "^7.11.2", "moment": "^2.30.1", "rxjs": "^6.6.6", "sortablejs": "^1.14.0", "vue": "^3.2.38", "vue-class-component": "^8.0.0-0", "vue-i18n": "^9.1.7", "vue-json-viewer": "^3.0.4", "vue-router": "^4.0.0-0", "vue3-datepicker": "^0.4.0", "vuex": "^4.0.0-0" }, "devDependencies": { "@types/chai": "^4.2.11", "@types/mocha": "^5.2.4", "@typescript-eslint/eslint-plugin": "^4.18.0", "@typescript-eslint/parser": "^4.18.0", "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-plugin-router": "~4.5.0", "@vue/cli-plugin-typescript": "~4.5.0", "@vue/cli-plugin-unit-mocha": "~4.5.0", "@vue/cli-plugin-vuex": "~4.5.0", "@vue/cli-service": "~4.5.0", "@vue/compiler-sfc": "^3.0.0", "@vue/eslint-config-airbnb": "^5.0.2", "@vue/eslint-config-typescript": "^7.0.0", "@vue/test-utils": "^2.0.0-0", "chai": "^4.1.2", "chalk": "^4.1.1", "chokidar": "^3.5.2", "eslint": "^6.7.2", "eslint-plugin-import": "^2.20.2", "eslint-plugin-vue": "^7.0.0", "lint-staged": "^9.5.0", "mockjs": "^1.1.0", "sass": "^1.57.0", "sass-loader": "^8.0.2", "typescript": "~4.1.5", "vue-loader": "^17.4.2" }, "eslintConfig": { "root": true, "env": { "node": true }, "extends": [ "plugin:vue/vue3-essential", "@vue/airbnb", "@vue/typescript/recommended" ], "parserOptions": { "ecmaVersion": 2020 }, "rules": { "indent": [ "error", 2 ], "no-param-reassign": [ "error", { "props": false } ], "@typescript-eslint/no-explicit-any": [ "off" ], "object-shorthand": [ "error", "properties" ], "func-names": [ "warn", "as-needed" ], "@typescript-eslint/explicit-module-boundary-types": "off", "max-len": [ "error", 200 ], "no-plusplus": [ "error", { "allowForLoopAfterthoughts": true } ], "@typescript-eslint/no-var-requires": 0, "import/extensions": "off", "global-require": 0, "no-underscore-dangle": 0, "import/prefer-default-export": "off", "linebreak-style": [ 0, "error", "windows" ], "import/order": [ "error", { "groups": [ "builtin", "external", "internal", [ "parent", "sibling" ], "index" ], "pathGroups": [ { "pattern": "~/", "group": "external", "position": "before" } ], "pathGroupsExcludedImportTypes": [ "builtin" ], "newlines-between": "always", "alphabetize": { "order": "asc", "caseInsensitive": true } } ] }, "overrides": [ { "files": [ "/tests/.{j,t}s?(x)", "/tests/unit//.spec.{j,t}s?(x)" ], "env": { "mocha": true } } ] }, "browserslist": [ "> 1%", "last 2 versions", "not dead" ], "gitHooks": { "pre-commit": "lint-staged" }, "lint-staged": { "*.{js,jsx,vue,ts,tsx}": [ "vue-cli-service lint", "git add" ] } }