Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка при использовании роутера с Vite #299

Closed
ExLineP opened this issue Nov 23, 2023 · 8 comments
Closed

Comments

@ExLineP
Copy link

ExLineP commented Nov 23, 2023

При создании минимального приложения с View и Panel появляется ошибка:

[ERROR] No matching export in "node_modules/@remix-run/router/dist/router.js" for import "UNSAFE_getPathContributingMatches"

    node_modules/@vkontakte/vk-mini-apps-router/dist/hooks/useResolvedPath.js:1:20:
      1 │ import { resolveTo, UNSAFE_getPathContributingMatches as getPathContributingMatches, } from '@remix-run...

Node.js 16,18,20 выдаёт ошибки

package.json:

{
  "name": "vk-mini-app-chart",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "tsc && vite build",
    "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
    "preview": "vite preview"
  },
  "dependencies": {
    "@vkontakte/vk-bridge": "^2.12.2",
    "@vkontakte/vk-mini-apps-router": "^1.3.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  },
  "devDependencies": {
    "@types/react": "^18.2.37",
    "@types/react-dom": "^18.2.15",
    "@typescript-eslint/eslint-plugin": "^6.10.0",
    "@typescript-eslint/parser": "^6.10.0",
    "@vitejs/plugin-react": "^4.2.0",
    "autoprefixer": "^10.4.16",
    "eslint": "^8.53.0",
    "eslint-plugin-react-hooks": "^4.6.0",
    "eslint-plugin-react-refresh": "^0.4.4",
    "postcss": "^8.4.31",
    "tailwindcss": "^3.3.5",
    "typescript": "^5.2.2",
    "vite": "^5.0.0"
  }
}
@PashaStrayt
Copy link

Такая же проблема

@ExLineP
Copy link
Author

ExLineP commented Nov 23, 2023

Если создавать через бойлерплейт, то ошибка остается и на React 17

@bks-kristin
Copy link

Аналогичная ошибка

@nshvyryaev
Copy link
Contributor

Спасибо за обращение и подсвечивание проблемы. На следующей неделе возьмем в работу чтобы убрать зависимость от более не предоставляемого метода.

@ExLineP
Copy link
Author

ExLineP commented Nov 24, 2023

@nshvyryaev можно ли исправить это в срочном порядке? Любая сборка не работает из-за этой проблемы.

@nshvyryaev
Copy link
Contributor

Обновил версию до 1.3.1 - проверьте, пожалуйста

@ExLineP
Copy link
Author

ExLineP commented Nov 24, 2023

Все работает, спасибо

@ExLineP ExLineP closed this as completed Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants