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

remesh4.0.0更新使用react useSyncExternalStore,导致无法正常使用remesh包。 #71

Closed
huangxok opened this issue Jan 9, 2023 · 2 comments

Comments

@huangxok
Copy link

huangxok commented Jan 9, 2023

脚手架:create-react-app
package.json

{
  "name": "remesh-demo",
  "version": "0.1.0",
  "private": true,
  "type": "module",
  "dependencies": {
    "@testing-library/jest-dom": "^5.14.1",
    "@testing-library/react": "^13.0.0",
    "@testing-library/user-event": "^13.2.1",
    "@types/jest": "^27.0.1",
    "@types/node": "^16.7.13",
    "@types/react": "^18.0.0",
    "@types/react-dom": "^18.0.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-scripts": "5.0.1",
    "remesh": "^4.0.0",
    "remesh-react": "^4.0.0",
    "rxjs": "^7.5.6",
    "web-vitals": "^2.1.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@types/typescript": "^2.0.0",
    "ts-node": "^10.9.1",
    "typescript": "^4.8.4"
  }
}

错误信息:
image

@github-actions
Copy link

github-actions bot commented Jan 9, 2023

Thank feedback. We will check it later:-)

@undoZen
Copy link
Contributor

undoZen commented Jan 9, 2023

可以关注一下 facebook/react#25231

暂时不使用 "type": "module", 也能解决

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

3 participants