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

🐛 BUG: .astro <script> doesn't get updated #3832

Closed
1 task
silveltman opened this issue Jul 5, 2022 · 3 comments · Fixed by #3932
Closed
1 task

🐛 BUG: .astro <script> doesn't get updated #3832

silveltman opened this issue Jul 5, 2022 · 3 comments · Fixed by #3932
Assignees

Comments

@silveltman
Copy link

What version of astro are you using?

1.0.0-beta.63

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

Describe the Bug

JS written in a <script> tag on a .astro page doesn't get updated. When I add it initally it uses the code, but after that no updates, When I restart the dev-server the updates are applied.

Howver, I do see the following in my vscode terminal: 00:40:44 [astro] reload C:/Users/silve/Documents/Web dev/astro/astro-reproduction/src/pages/debug.astro

For a reproduction I did:

  • npm create astro@latest
  • npm i gsap
  • make new page file (debug.astro, see reproduction)
  • thats it..

Link to Minimal Reproducible Example

https://github.com/silveltman/astro-reproduction

Participation

  • I am willing to submit a pull request for this issue.
@arimgibson
Copy link
Contributor

Not able to open the link to your minimal reproducable example @silveltman

@silveltman
Copy link
Author

I'm not sure what's the problem there. However, it was basically the starter template. Via Discord I heard that it seems to be a windows problem. Should be fixen when vite 3 gets implemented.

Also, for me the problem suddenly disappeared without a reason. Let's hope it won't reappear before the vite upgrade

@natemoo-re
Copy link
Member

Sounds like this problem has gone away?

Other recent developments are:

@natemoo-re natemoo-re linked a pull request Jul 19, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants