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

Getting typeerror while trying to serve index.html using express.js #1443

Open
ayushch80 opened this issue Feb 21, 2024 · 0 comments
Open

Getting typeerror while trying to serve index.html using express.js #1443

ayushch80 opened this issue Feb 21, 2024 · 0 comments

Comments

@ayushch80
Copy link

Describe the bug

ERROR

main.bundle.js?v=1708507092640:92 Uncaught TypeError: Cannot read properties of null (reading 'classList')
    at main.bundle.js?v=1708507092640:92:13000
    at NodeList.forEach (<anonymous>)
    at H (main.bundle.js?v=1708507092640:92:12781)
    at Ue (main.bundle.js?v=1708507092640:92:13511)
    at HTMLDocument.<anonymous> (main.bundle.js?v=1708507092640:92:5168)

Steps to reproduce

  1. Generate docs npx apidoc -i ./ -o ./docs
  2. Serve it using Express
app.get('/', async (req, res) => {
  res.sendFile(path.join(__dirname, '/docs/index.html'));
});

Information

  • Version of apidoc: 1.2.0
  • Operating system (e.g. GNU+Linux/MacOS/Windows): Windows 11
  • Node version: 20.11.0
  • Browser (e.g. firefox, chrome): Chrome
  • Express version : 4.18.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant