Giter VIP home page Giter VIP logo

react-crm's Issues

No code to save new contacts

There is/was code to save new contacts in the AddContacts.js, but the code is now commented out.
I can't see that the new ContactDrawer.js has any code to support saving/creating new contacts.
WHy no code to save contacts? What is going on here?

about login

Dear Ashwin Kumar,

I hope this message finds you well. I have been using your "react-crm" and encountered an issue with the login functionality. After a successful login, the application does not automatically navigate to the /company page as expected.

The issue seems to be related to the LogInForm component, where the function responsible for navigation upon successful login is not being called. I attempted to resolve the issue, but my solution did not work as intended.

I kindly request your assistance in addressing this problem. Your expertise and guidance would be greatly appreciated.

Thank you in advance for your attention and support.

Best regards
alan chen

image

webpack compiled with 1 error and 1 warning No issues found.

One of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it may break at any time.

babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.
Failed to compile.

[eslint] Failed to load plugin 'n' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-n'
Require stack:

  • C:\Users\DELL\Documents\GitHub\test\react-crm\node_modules\react-scripts\config_placeholder_.js
    WARNING in ./node_modules/quill/dist/quill.js
    Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
    Failed to parse source map from 'C:\Users\DELL\Documents\GitHub\test\react-crm\node_modules\quill\dist\Op.js.map\n\n#' file: Error: ENOENT: no such file or directory, open 'C:\Users\DELL\Documents\GitHub\test\react-crm\node_modules\quill\dist\Op.js.map\n\n#'

ERROR in [eslint] Failed to load plugin 'n' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-n'
Require stack:

  • C:\Users\DELL\Documents\GitHub\test\react-crm\node_modules\react-scripts\config_placeholder_.js

webpack compiled with 1 error and 1 warning
No issues found.

Failed to compile.

Failed to compile.

[eslint] Failed to load config "standard" to extend from.
Referenced from: /Users/taochen/project/react-crm/.eslintrc.js
WARNING in ./node_modules/antd/dist/antd.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/antd/dist/antd.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/config-provider/style/index.less' URL is not supported

WARNING in ./node_modules/antd/dist/antd.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/antd/dist/antd.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/icon/style/index.less' URL is not supported

WARNING in ./node_modules/antd/dist/antd.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/antd/dist/antd.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/locale-provider/style/index.less' URL is not supported

WARNING in ./node_modules/antd/dist/antd.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/antd/dist/antd.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/time-picker/style/index.less' URL is not supported

ERROR in [eslint] Failed to load config "standard" to extend from.
Referenced from: /Users/taochen/project/react-crm/.eslintrc.js

webpack compiled with 1 error and 4 warnings

Can't resolve

/usr/bin/python3 /home/ubuntu/runcode/run_user_script.py
ubuntu@runcode:~/workspace$ /usr/bin/python3 /home/ubuntu/runcode/run_user_script.py

GO TO THIS URL TO VIEW PAGE https://3000-morning-smoke-01698397.eu-ws2.runcode.io

yarn run v1.22.19
$ react-scripts start
(node:1832) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use node --trace-deprecation ... to show where the warning was created)
(node:1832) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Starting the development server...

Failed to compile.

Module not found: Error: Can't resolve '@mui/base/TabsListUnstyled' in '/home/ubuntu/workspace/src/containers/Contacts'
assets by path static/ 6.02 MiB
assets by path static/media/ 145 KiB
asset static/media/img_register.5fc1f67cefd917b0397e.png 55 KiB [emitted] [immutable] [from: src/assets/images/auth/img_register.png] (auxiliary name: main)
asset static/media/img_BG.547738d50effb003deaa.jpg 43.3 KiB [emitted] [immutable] [from: src/assets/images/auth/img_BG.jpg] (auxiliary name: main)
asset static/media/img_logo.7b129f04324122eefba3.png 20.3 KiB [emitted] [immutable] [from: src/assets/images/auth/img_logo.png] (auxiliary name: main)
asset static/media/img_forgotPassword.50deb9b34c2f1151050a.png 16.2 KiB [emitted] [immutable] [from: src/assets/images/auth/img_forgotPassword.png] (auxiliary name: main)
asset static/media/img_login.f861437f11ef4c316624.png 10.7 KiB [emitted] [immutable] [from: src/assets/images/auth/img_login.png] (auxiliary name: main)
assets by path static/js/*.js 5.87 MiB
asset static/js/bundle.js 5.87 MiB [emitted] (name: main) 1 related asset
asset static/js/node_modules_web-vitals_dist_web-vitals_js.chunk.js 7.22 KiB [emitted] 1 related asset
asset index.html 1.73 KiB [emitted]
asset asset-manifest.json 904 bytes [emitted]
cached modules 11.4 MiB (javascript) 145 KiB (asset) [cached] 11875 modules
runtime modules 31.7 KiB 17 modules

ERROR in ./src/containers/Contacts/Contact.js 13:0-58
Module not found: Error: Can't resolve '@mui/base/TabsListUnstyled' in '/home/ubuntu/workspace/src/containers/Contacts'
@ ./src/containers/Home/Home.js 14:0-46
@ ./src/App.js 9:0-46 17:40-44
@ ./src/index.js 6:0-24 10:33-36

ERROR in ./src/containers/Leads/LeadList.js 9:0-50
Module not found: Error: Can't resolve '@mui/base/TabsUnstyled' in '/home/ubuntu/workspace/src/containers/Leads'
@ ./src/sidebar/Sidebar.js 25:0-56 378:42-50
@ ./src/containers/Home/Home.js 16:0-48 189:35-42
@ ./src/App.js 9:0-46 17:40-44
@ ./src/index.js 6:0-24 10:33-36

ERROR in ./src/containers/Leads/LeadList.js 10:0-58
Module not found: Error: Can't resolve '@mui/base/TabsListUnstyled' in '/home/ubuntu/workspace/src/containers/Leads'
@ ./src/sidebar/Sidebar.js 25:0-56 378:42-50
@ ./src/containers/Home/Home.js 16:0-48 189:35-42
@ ./src/App.js 9:0-46 17:40-44
@ ./src/index.js 6:0-24 10:33-36

ERROR in ./src/containers/Leads/LeadList.js 11:0-65
Module not found: Error: Can't resolve '@mui/base/ButtonUnstyled' in '/home/ubuntu/workspace/src/containers/Leads'
@ ./src/sidebar/Sidebar.js 25:0-56 378:42-50
@ ./src/containers/Home/Home.js 16:0-48 189:35-42
@ ./src/App.js 9:0-46 17:40-44
@ ./src/index.js 6:0-24 10:33-36

ERROR in ./src/containers/Leads/LeadList.js 12:0-72
Module not found: Error: Can't resolve '@mui/base/TabUnstyled' in '/home/ubuntu/workspace/src/containers/Leads'
@ ./src/sidebar/Sidebar.js 25:0-56 378:42-50
@ ./src/containers/Home/Home.js 16:0-48 189:35-42
@ ./src/App.js 9:0-46 17:40-44
@ ./src/index.js 6:0-24 10:33-36

5 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.88.2 compiled with 5 errors in 13345 ms

当我安装好node.js并运行,一直报错

ERROR in ./src/containers/Contacts/Contact.js 13:0-58
Module not found: Error: Can't resolve '@mui/base/TabsListUnstyled' in '/home/adminliu/react-crm/src/containers/Contacts'
ERROR in ./src/containers/Leads/LeadList.js 9:0-50
Module not found: Error: Can't resolve '@mui/base/TabsUnstyled' in '/home/adminliu/react-crm/src/containers/Leads'
ERROR in ./src/containers/Leads/LeadList.js 10:0-58
Module not found: Error: Can't resolve '@mui/base/TabsListUnstyled' in '/home/adminliu/react-crm/src/containers/Leads'
ERROR in ./src/containers/Leads/LeadList.js 11:0-65
Module not found: Error: Can't resolve '@mui/base/ButtonUnstyled' in '/home/adminliu/react-crm/src/containers/Leads'
ERROR in ./src/containers/Leads/LeadList.js 12:0-72
Module not found: Error: Can't resolve '@mui/base/TabUnstyled' in '/home/adminliu/react-crm/src/containers/Leads'
ERROR
[eslint] Failed to load plugin 'n' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-n'
Require stack:

  • /home/adminliu/react-crm/node_modules/react-scripts/config/placeholder.js

Failed to compile. Cannot read config file: /workspace/react-crm/.eslintrc.js Error: Unexpected token ':'

Failed to compile.

Cannot read config file: /workspace/react-crm/.eslintrc.js
Error: Unexpected token ':'

yarn add eslint-config-standard
yarn add eslint-plugin-promise
yarn add eslint-plugin-n
yarn add eslint
yarn add eslint-friendly-formatter
yarn add eslint-loader
yarn add eslint-plugin-html
yarn add eslint-plugin-nodejs

Here is the full code for .eslintrc.json file.

{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"react/react-in-jsx-scope": "off"
}
}

yarn run eslint --init
yarn start

Can't resolve '@mui/base/TabsUnstyled'

Hi there,

When running react-crm, I get the following error "Module not found: Error: Can't resolve '@mui/base/TabsUnstyled' in '/home/ubuntu/workspace/src/containers/Leads'".
This leads to a compile error "webpack 5.82.1 compiled with 4 errors in 35408 ms"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.