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

ReferenceError: Cannot access 'plotWidCss' before initialization #307

Closed
ohsory1324 opened this issue Sep 17, 2020 · 3 comments
Closed

ReferenceError: Cannot access 'plotWidCss' before initialization #307

ohsory1324 opened this issue Sep 17, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@ohsory1324
Copy link

I'm using React.js and I was trying to use version 1.2.0, but it occurs ReferenceError: Cannot access 'plotWidCss' before initialization. When I use version 1.1.2, it works well.

This is my package.json

{
  "name": "uplot-test",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.3.2",
    "@testing-library/user-event": "^7.1.2",
    "@types/jest": "^24.0.0",
    "@types/node": "^12.0.0",
    "@types/react": "^16.9.0",
    "@types/react-dom": "^16.9.0",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-scripts": "3.4.3",
    "typescript": "~3.7.2",
    "uplot": "1.1.2"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "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"
    ]
  }
}
@FrantisekPostl
Copy link

I'm having the same issue

@leeoniya
Copy link
Owner

sorry, i should really have at least one demo that uses ESM directly rather than the ES5 transpiled versions with hoisted vars.

i'll have a fix out later today.

@leeoniya leeoniya added the bug Something isn't working label Sep 17, 2020
@leeoniya
Copy link
Owner

v1.2.1 is out with the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants