Я использую Vue и Typescript вместе с vue -property-decorator для применения Typescript. Я получаю следующую ошибку в функции _isNativeReflectConstruct
:
TS2339: свойство типа «фиктивный» не существует для типа
Пока я не знаю, где эта функция исходит от. Точное местоположение ошибки: Reflect.construct.sham
.
Вот мои tsconfig.json
и зависимости в package.json
:
tsconfig. json
{
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
"target": "es5",
"module": "commonjs",
"strict": false,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"types": [
"node",
"webpack-env"
],
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
],
"strictPropertyInitialization": false,
"noImplicitAny": false,
"strictNullChecks": false
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
],
"defaultSeverity": "warning"
}
. json
"dependencies": {
"@babel/runtime": "^7.9.2",
"@vue/cli-service": "^4.2.3",
"aws-sdk": "^2.504.0",
"axios": "^0.19.2",
"crypto-js": "^3.1.9-1",
"decimal.js": "^10.2.0",
"es6-promise": "^4.2.8",
"gsap": "^2.1.3",
"jsencrypt": "^3.0.0-rc.1",
"node-sass": "^4.12.0",
"npm": "^6.13.6",
"popper.js": "^1.15.0",
"swiper": "^4.5.0",
"vee-validate": "^2.2.14",
"vue": "^2.6.11",
"vue-analytics": "^5.17.0",
"vue-axios": "^2.1.4",
"vue-carousel": "^0.15.0",
"vue-class-component": "^7.2.2",
"vue-cli": "^2.9.6",
"vue-js-modal": "^1.3.31",
"vue-pdf": "^4.0.7",
"vue-property-decorator": "^8.4.0",
"vue-router": "^3.1.1",
"vue-scroll-picker": "^0.3.0",
"vue2-toast": "^2.1.0",
"vuejs-datepicker": "^1.6.2",
"vuex": "^3.1.1",
"vuex-class": "^0.3.2"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-syntax-jsx": "^7.0.0",
"@babel/plugin-transform-async-to-generator": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/plugin-transform-typescript": "^7.8.3",
"@babel/polyfill": "^7.7.0",
"@babel/preset-env": "^7.7.7",
"@babel/preset-typescript": "^7.8.3",
"@babel/register": "^7.0.0",
"@types/node": "^13.9.3",
"@typescript-eslint/parser": "^2.22.0",
"@vue/cli-plugin-e2e-cypress": "^4.2.3",
"@vue/cli-plugin-typescript": "^4.2.2",
"@vue/component-compiler-utils": "^3.1.0",
"@vue/eslint-config-typescript": "^5.0.1",
"autoprefixer": "^7.1.2",
"babel-core": "^6.26.3",
"babel-eslint": "^9.0.0",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-jest": "^23.4.2",
"babel-loader": "^8.0.6",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-vue": "^2.0.2",
"chalk": "^2.4.2",
"chromedriver": "^2.46.0",
"cross-spawn": "^5.0.1",
"css-loader": "^3.4.0",
"eslint": "^4.19.1",
"eslint-config-standard": "^10.2.1",
"eslint-friendly-formatter": "^3.0.0",
"eslint-loader": "^1.7.1",
"eslint-plugin-html": "^4.0.6",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^5.2.0",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^3.0.1",
"eslint-plugin-vue": "^4.7.1",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^1.1.4",
"friendly-errors-webpack-plugin": "^1.7.0",
"html-webpack-plugin": "^3.2.0",
"jest": "^22.0.4",
"jest-serializer-vue": "^0.3.0",
"mini-css-extract-plugin": "^0.9.0",
"nightwatch": "^0.9.12",
"node-notifier": "^5.4.1",
"optimize-css-assets-webpack-plugin": "^4.0.3",
"ora": "^1.2.0",
"portfinder": "^1.0.21",
"postcss-import": "^11.0.0",
"postcss-loader": "^2.0.8",
"postcss-url": "^7.2.1",
"rimraf": "^2.6.3",
"sass-loader": "^8.0.0",
"selenium-server": "^3.141.59",
"semver": "^5.7.0",
"shelljs": "^0.7.6",
"tapable": "^1.1.3",
"ts-loader": "^6.2.1",
"typescript": "^3.7.5",
"uglifyjs-webpack-plugin": "^1.1.1",
"url-loader": "^0.5.8",
"vue-jest": "^1.0.2",
"vue-loader": "^15.8.3",
"vue-style-loader": "^4.1.2",
"vue-template-compiler": "^2.6.11",
"webpack": "^4.41.4",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.1",
"webpack-merge": "^4.2.1"
},