Error Is Not Allowing The Tronic247 Material To Run
Closed this issue · 2 comments
sancho1952007 commented
I Am Getting Uncaught Type Error And Script Not Working...
material.min.js:10 Uncaught TypeError: Cannot read properties of null (reading 'querySelectorAll')
at Object.init (material.min.js:10:29494)
at material.min.js:10:30107
at material.min.js:10:116544
at material.min.js:10:116550
at material.min.js:10:193
at material.min.js:10:197
Posandu commented
Can you provide some code? This seems to be an issue with your code
Also make sure to include the JavaScript files at the bottom.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="material.css">
<script src="material.js"></script> <!-- WRONG -->
</head>
<body>
</body>
</html>
Correct
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="material.css">
</head>
<body>
<script src="material.js"></script> <!-- CORRECT -->
</body>
</html>
Posandu commented
Closing this because no activity, feel free to reopen!