TS,react-app-rewired, пряжа и lerna Ubuntu 20.04

В этом проекте у меня есть панель администратора, бэкэнд и клиентская часть, админ и бэкэнд работают нормально, но когда я пытаюсь запустить клиентскую часть, появляется эта ошибка, я уже установил загрузчики для babel,ts-node,ts глобально / локально и это не сильно поможет. Весь код был написан на ts и также переработан в react-app

ts config
{
  "compilerOptions": {
    "experimentalDecorators": true,
    "target": "es5",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "baseUrl": "src",
    "noEmit": true
  },
  "include": [
    "src"
  ]
}
packages.json
{
  "name": "@project-m/client",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@babel/core": "^7.10.5",
    "@babel/plugin-proposal-optional-chaining": "^7.7.4",
    "@project-m/core": "0.0.0",
    "@project-m/schemas": "^0.0.0",
    "@types/history": "^4.7.2",
    "@types/jest": "24.0.22",
    "@types/lodash": "^4.14.144",
    "@types/node": "11.13.8",
    "@types/react": "16.8.15",
    "@types/react-dates": "^17.1.6",
    "@types/react-dom": "16.8.4",
    "@types/react-helmet": "^5.0.15",
    "@types/react-redux": "^7.0.8",
    "@types/react-router": "^5.1.2",
    "@types/react-router-dom": "^5.1.0",
    "@types/react-share": "^3.0.3",
    "babel-jest": "24.9.0",
    "babel-loader": "8.0.6",
    "connected-react-router": "^6.4.0",
    "eslint": "6.6.0",
    "history": "4.7.2",
    "inversify": "^5.0.1",
    "jest": "24.9.0",
    "localforage": "^1.7.3",
    "lodash": "^4.17.15",
    "moment": "^2.24.0",
    "node-sass": "^4.13.0",
    "query-string": "^6.12.1",
    "react": "^16.8.6",
    "react-dates": "^21.5.1",
    "react-dom": "^16.8.6",
    "react-helmet": "^5.2.1",
    "react-player": "^1.14.2",
    "react-range": "^1.4.6",
    "react-redux": "^7.0.3",
    "react-router": "^5.0.0",
    "react-router-dom": "^5.0.0",
    "react-scripts": "3.0.0",
    "react-share": "^3.0.1",
    "redux": "^4.0.1",
    "redux-devtools-extension": "^2.13.8",
    "reflect-metadata": "^0.1.13",
    "typescript": "^3.6.4",
    "webpack": "4.41.5"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test",
    "eject": "react-scripts eject"
  },
  "lint-staged": {
    "**/*.js": "eslint",
    "**/*.ts": "tslint",
    "**/*.{css,json,md,yml}": "prettier -c",
    "**/.eslintrc": "prettier -c",
    "**/.babelrc": "prettier -c",
    "**/.prettierrc": "prettier -c"
  },
  "commitlint": {
    "extends": [
      "@commitlint/config-conventional",
      "@commitlint/config-lerna-scopes"
    ]
  },
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
      "pre-commit": "lint-staged"
    }
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@babel/plugin-proposal-decorators": "^7.8.3",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
    "@babel/plugin-proposal-optional-chaining": "^7.7.4",
    "babel-eslint": "10.0.3",
    "babel-plugin-parameter-decorator": "^1.0.15",
    "customize-cra": "^0.9.1",
    "react-app-rewired": "^2.1.5"
  }
}

0 ответов

Другие вопросы по тегам