-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
css.js throw Cannot read properties of null (reading 'querySelector') #17960
Copy link
Copy link
Open
Labels
awaiting submitterneeds a reproduction, or clarificationneeds a reproduction, or clarificationcssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling
Description
Describe the bug
`my component as below:
....
In some cases throw Cannot read properties of null (reading 'querySelector')
src\internal\client\dom\css.js
export function append_styles(anchor, css) {
line 21: if (!target.querySelector('#' + css.hash)) {
//add target&&
if (target&&!target.querySelector('#' + css.hash)) {`
Reproduction
Uncaught TypeError: Cannot read properties of null (reading 'querySelector')
in <unknown>
in Button.svelte
in Popper.svelte
in App.svelte
in Router.svelte
in Col.svelte
in Row.svelte
in App.svelte
in undefined
Logs
System Info
svelte, webpack --binariesSeverity
annoyance
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
awaiting submitterneeds a reproduction, or clarificationneeds a reproduction, or clarificationcssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling