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

Incomplete information on page - Packet Management Basics on MDN #27729

Closed
effaf opened this issue Jul 4, 2023 · 4 comments
Closed

Incomplete information on page - Packet Management Basics on MDN #27729

effaf opened this issue Jul 4, 2023 · 4 comments
Labels
closed: question A user misinterpretation or support question. No action required. Content:Learn:Client-side Content under “Client-side JavaScript frameworks” (Svelte, React, Angular, Vue) and related subtrees

Comments

@effaf
Copy link

effaf commented Jul 4, 2023

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Understanding_client-side_tools/Package_management

What specific section or headline is this issue about?

Having fun with Parcel

What information was incorrect, unhelpful, or incomplete?

I followed all the instructions and include 'parcel' as a dependency in my project. Post this I tried making changes in my index.html file but they did not appear live (I added a

element in my index.html). I ignored it and proceed further. Copied the contents mentioned in the guide to my index.js (Date dependency). When I refreshed my html, I could not see the changes live. I then added a <script> tag to my html, and it then installed the dependency automatically.

I think the guide overlook the instruction of connecting the index.html to index.js using the script tag. I am a beginner, and I might be wrong. Please let me know if I am thinking right.

P.S. - My file names are index.html and index.js. It still did not work. (If that might be one of the reasons).

What did you expect to see?

I expected to see an instruction asking to connect index.html to index.js using the script element in the html file.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

I am a novice and I might be wrong. I think parcel dependency should handle it, but I guess it did not.

MDN metadata

Page report details
@effaf effaf added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jul 4, 2023
@github-actions github-actions bot added the Content:Learn:Client-side Content under “Client-side JavaScript frameworks” (Svelte, React, Angular, Vue) and related subtrees label Jul 4, 2023
@sideshowbarker sideshowbarker removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jul 4, 2023
@Josh-Cena
Copy link
Member

The index.html file, when it was first introduced, contains this:

<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8" />
    <title>My test page</title>
  </head>
  <body>
    <script src="./index.js"></script>
  </body>
</html>

Does yours look the same?

@Josh-Cena Josh-Cena added the needs info Needs more information to review or act on. label Jul 4, 2023
@effaf
Copy link
Author

effaf commented Jul 4, 2023

Not the same. My index.html looks a bit different. I added a few tags (h1,p).

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>First Parcel Node App</title>
</head>
<body>
    <h1>Wassup my g's</h1>
</body>
</html>

@Josh-Cena
Copy link
Member

Yes, you would need to follow the tutorial—the very beginning tells you you need the <script src="./index.js"></script>.

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2023
@Josh-Cena Josh-Cena added closed: question A user misinterpretation or support question. No action required. and removed needs info Needs more information to review or act on. labels Jul 4, 2023
@effaf
Copy link
Author

effaf commented Jul 4, 2023

Okay, I did not copy and paste the code. My bad. Thank you for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: question A user misinterpretation or support question. No action required. Content:Learn:Client-side Content under “Client-side JavaScript frameworks” (Svelte, React, Angular, Vue) and related subtrees
Projects
None yet
Development

No branches or pull requests

3 participants