There’s an issue with accessing the admin panel and this thread is about debugging the issue and fixing the issue.
opened 08:39AM - 05 Jun 21 UTC
closed 03:07PM - 07 Jun 21 UTC
**Describe the bug**
The front end crashes when visiting the change state view … in the deployed version.
**To Reproduce**
Steps to reproduce the behaviour:
1. Go to https://sef-scholarx.herokuapp.com/
2. Click on 'the manage button of an application
4. See the error
**Expected behaviour**
The dashboard should load without an issue
**Screenshots**

**Log**
```
bundle.js:305 Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Object.Ko (bundle.js:305)
at t.useState (bundle.js:297)
at my (bundle.js:321)
at $o (bundle.js:305)
at gl (bundle.js:305)
at cs (bundle.js:305)
at ls (bundle.js:305)
at Ql (bundle.js:305)
at bundle.js:305
at t.unstable_runWithPriority (bundle.js:313)
nl @ bundle.js:305
bundle.js:305 TypeError: Cannot read property 'removeChild' of null
at o.value (bundle.js:8)
at o.value (bundle.js:8)
at bundle.js:305
at il (bundle.js:305)
at ul (bundle.js:305)
at fs (bundle.js:305)
at t.unstable_runWithPriority (bundle.js:313)
at Wr (bundle.js:305)
at ps (bundle.js:305)
at Ql (bundle.js:305)
nl @ bundle.js:305
bundle.js:305 DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at ul (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:86650)
at fs (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:99857)
at t.unstable_runWithPriority (https://sef-scholarx.herokuapp.com/dist/bundle.js:313:3844)
at Wr (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:45023)
at ps (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:97717)
at Ql (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:93871)
at https://sef-scholarx.herokuapp.com/dist/bundle.js:305:45314
at t.unstable_runWithPriority (https://sef-scholarx.herokuapp.com/dist/bundle.js:313:3844)
at Wr (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:45023)
at Kr (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:45259)
nl @ bundle.js:305
bundle.js:305 Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Object.Ko (bundle.js:305)
at t.useState (bundle.js:297)
at my (bundle.js:321)
at $o (bundle.js:305)
at gl (bundle.js:305)
at cs (bundle.js:305)
at ls (bundle.js:305)
at Ql (bundle.js:305)
at bundle.js:305
at t.unstable_runWithPriority (bundle.js:313)
nl @ bundle.js:305
bundle.js:313 Uncaught TypeError: Cannot read property 'removeChild' of null
at o.value (bundle.js:8)
at o.value (bundle.js:8)
at bundle.js:305
at il (bundle.js:305)
at ul (bundle.js:305)
at fs (bundle.js:305)
at t.unstable_runWithPriority (bundle.js:313)
at Wr (bundle.js:305)
at ps (bundle.js:305)
at Ql (bundle.js:305)
```
**Desktop (please complete the following information):**
- OS: MacOS
- Browser Chrome
- Version 91.0.4472.77 (Official Build) (arm64)
2 Likes
First I couldn’t reproduce the bug locally then I found that in the spring boot app the static files are under another file called dist
like static/dist
. but if we didn’t put the bundle.js
under the dist
it works fine.
I think that might be the issue. There are two changes to be done in order to serve the files under static.
Update the webpack config
Update the travis script in the backend
But I’m not sure about this but we can give it a try.
1 Like
After sending the PR’s for the above issues, we had to do a hotfix and release a minor version.
We released the v1.2.1 with that release admin is working now.
PRs of above issues:
sef-global:development
← anjula-sack:travis-update
opened 03:53PM - 06 Jun 21 UTC
## Purpose
- The purpose of this PR is to fix #158
## Goals
- Serve ev… ery static file under the same directory
## Approach
- Updated the travis script file
## Checklist
- [x] This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
- [x] I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
sef-global:development
← anjula-sack:webpack-update
opened 03:42PM - 06 Jun 21 UTC
## Purpose
- The purpose of this PR is to fix #172
## Goals
- Changing t… he build public path
## Approach
- Updated the webpack config file
- Updated the index HTML file
## Checklist
- [x] This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
- [x] I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
Release PRs:
sef-global:master
← sef-global:development
opened 03:52AM - 07 Jun 21 UTC
## Purpose
The purpose of this PR is to fix dashboard crashing issue
## Go… als
- Avoid creating dist folder
## Approach
-Updated the travis file
## Checklist
- [x] This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
- [x] I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
sef-global:master
← sef-global:development
opened 04:15PM - 06 Jun 21 UTC
## Purpose
The purpose of this PR is to Release ScholarX v1.2.1
## Goals
…
- Fix the dashboard crashing issue
## Approach
- Updated the webpack config
## Checklist
- [x] This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
- [x] I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
3 Likes
jaye
June 7, 2021, 6:56am
5
Thanks, @anjisvj ! I tested it, and it works fine now! I guess the problem might be having linked two bundle.js files.
Also, this has been fixed the twice loading issue as well.
Well done @anjisvj !
2 Likes