-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
What version of astro are you using?
1.0.0-rc.8
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Windows 10
Describe the Bug
Please see my sample repo.
That sample will show:
- loading screen
- script is loaded from
src\components\LoadingScreen\LoadingScreen.astro
- script is loaded from
- canvas animation (moving sea picture)
- script is loaded from
src\pages\index.astro
- script is loaded from
Problem
- start
astro devand access local page - loading screen is correctly showed, but canvas animation is not showed.
- script is not loaded to head tag
- once I save
src\scenes\main.ts, canvas animation starts moving- script is loaded
Case that Works
- remove
@use "node_modules/tailwindcss/utilities";fromsrc/styles/style.scss - start
astro devand access local page - working correctly
Additional Notes
I tested some versions.
in 1.0.0-beta.69 ~ 72: working correctly (without removing @use "node_modules/tailwindcss/utilities";)
from 1.0.0-beta.73: the problem occurs.
(Edited)
1.0.0-beta.73 ~ 1.0.0-rc.3:
- start
astro devand access local page - canvas animation is not showed.
- once I reload , canvas animation start running
1.0.0-rc.4 ~:
- start
astro devand access local page - canvas animation is not showed.
- reload changes nothing
- once I save
src\scenes\main.ts, canvas animation starts moving
Link to Minimal Reproducible Example
https://github.com/kagankan/astro-sample/tree/41c58b10d639dbdecd9b020b331fa8ee94517ebc
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)