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

[Tools] Deprecated packages and links, issue about parcel auto installation, wrong path in /src/index.css #28100

Closed
devusexu opened this issue Jul 21, 2023 · 1 comment · Fixed by #34017
Labels
Content:Learn:Client-side Content under “Client-side JavaScript frameworks” (Svelte, React, Angular, Vue) and related subtrees

Comments

@devusexu
Copy link
Contributor

MDN URL

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

What specific section or headline is this issue about?

Tools used in our toolchain; Installing our tools; Build and transformation tools; Running the transformation

What information was incorrect, unhelpful, or incomplete?

  1. JSX introduction site deprecated, new site at Writing Markup with JSX & JavaScript in JSX with Curly Braces
  2. babel-eslint deprecated, now @babel/eslint-parser
  3. parcel-bundler deprecated. Can't even npm install it now
  4. command npx parcel src/index.html failed

TL;DR

  • Install the packages which should be auto installed by parcel on your own
  • Change the file path in /src/index.css;

Below is the process of debugging. First run the command npx parcel src/index.html and an error occurred

🚨 Build failed.
@parcel/transformer-js: Expression expected
image

As the parcel auto installation issue I posted #28080 , parcel didn't auto install react, react-dom, react-async-hook, date-fns, and format-number for me like the tutorial said.
So I install them on my own and encounter next little problem, the wrong path of svg file

image

Changing absolute path '/img/filename.svg' to relative path 'img/filename.svg' solved the issue while next error occurred

🚨 Build failed.
Error: Expected content key 37a1035e8011b3a1 to exist

Easy, just delete the cache directory of parcel by running rm -r .parcel-cache
Now parcel build successfully, damn the auto installation!
I need to mention that I also change babel-eslint(now deprecated) to @babal/core and @babel/eslint-parser, not sure if that makes any difference

What did you expect to see?

  1. viable packages
  2. parcel build successfully

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

No response

Do you have anything more you want to share?

My environment:
Windows 11 / Ubuntu 22.04.2 LTS run on WSL
node: v18.17.0 / v20.4.0
parcel: 2.9.3

MDN metadata

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

Although it worked during development, it failed when I deploy with Netlify (page loaded without the main content, reporting some function went wrong in the console).
So I gave up following the rest of the tutorial.

@Josh-Cena Josh-Cena changed the title Deprecated packages and links, issue about parcel auto installation, wrong path in /src/index.css [Tools] Deprecated packages and links, issue about parcel auto installation, wrong path in /src/index.css Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Learn:Client-side Content under “Client-side JavaScript frameworks” (Svelte, React, Angular, Vue) and related subtrees
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants