json-schema-viewer icon indicating copy to clipboard operation
json-schema-viewer copied to clipboard

Render without any style,And there is a warning

Open danceli opened this issue 2 years ago • 6 comments

environment: "react": "^17.0.2", "react-dom": "^17.0.2",

"@stoplight/json-schema-viewer": "4.5.0", "@stoplight/markdown-viewer": "^5", "@stoplight/mosaic": "^1.24.4", "@stoplight/mosaic-code-viewer": "^1.24.4",

warning [DEPRECATED]: use useSetAtom from jotai instead.

danceli avatar Apr 04 '23 03:04 danceli

I'm currently getting this warning and does not render properly. environment:

 "dependencies": {
    "@stoplight/json-schema-viewer": "^4.9.0",
    "eslint": "8.40.0",
    "eslint-config-next": "13.4.1",
    "next": "13.4.1",
    "react": "18.2.0",
    "react-dom": "18.2.0"
  }

Screenshot 2023-05-11 at 14 45 04

bulentozdil avatar May 11 '23 11:05 bulentozdil

@bulentozdil I had a similar problem and was able to add styles by following this example:

https://github.com/stoplightio/json-schema-viewer/blob/e620432eb4c2e442c02c3b00cd97bb237e11f309/.storybook/preview.jsx#L20-L29

I am also running into the error:

warning
[DEPRECATED]: use useSetAtom from jotai instead.

GwenythIO avatar Jul 19 '23 05:07 GwenythIO