Ver código fonte

Adding emotion libary to deependencies (#371)

before installing these libraries `npm run dev` wouldn't work. I kept getting the following error.
```
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
error - ./node_modules/@mui/styled-engine/index.js:6:0
Module not found: Can't resolve '@emotion/styled'

Import trace for requested module:
./node_modules/@mui/system/esm/index.js
./node_modules/@mui/material/styles/index.js
./node_modules/@mui/material/index.js
./components/ContextProvider.tsx
./pages/_app.tsx

https://nextjs.org/docs/messages/module-not-found
wait  - compiling /_error (client and server)...
```
Chad 3 anos atrás
pai
commit
9d3daf0630
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      packages/starter/example/package.json

+ 3 - 1
packages/starter/example/package.json

@@ -28,8 +28,10 @@
     },
     "dependencies": {
         "@ant-design/icons": "^4.0.0",
+        "@emotion/react": "^11.8.2",
+        "@emotion/styled": "^11.8.1",
         "@mui/icons-material": "^5.5.0",
-        "@mui/material": "^5.5.0",
+        "@mui/material": "^5.5.2",
         "@solana/wallet-adapter-ant-design": "^0.11.3",
         "@solana/wallet-adapter-base": "^0.9.4",
         "@solana/wallet-adapter-material-ui": "^0.16.4",