question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parcel setup instructions inconsistent

See original GitHub issue

According to the website, step 2 after installing @compiled/react is to install @compiled/parcel-transformer, but according to the repository’s README, the next step is to install @compiled/parcel-config.

If I install with parcel-config, following the instructions in the readme, then update the parcelrc as instructed, I get this error:

  1 | {
> 2 |   "extends": ["...", "@compiled/parcel-config"]
>   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^ Cannot find module "@compiled/parcel-config", did you mean "@compiled/parcel-config"?
  3 | }

If I install with parcel-transformer, following the instructions on the website, then update the parcelrc as the README instructs, I get this error:

Support for the experimental syntax 'jsx' isn't currently enabled (8:10):
...
Add @babel/preset-react (https://github.com/babel/babel/tree/main/packages/babel-preset-react) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx) to the 'plugins' section to enable parsing.

Does parcel support actually work? I’m starting with basically a clean slate and cant get it to work

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:13

github_iconTop GitHub Comments

1reaction
JakeLanecommented, Jun 1, 2022

I think this may be an issue with the package.json. I’ll raise a PR with the fix and 🤞 that fixes it

1reaction
onionhammercommented, Jun 1, 2022

@pancaspe87 I’ve taken the liberty of breaking out the parcel sample from its parent repository and posted it up here

https://github.com/onionhammer/compiled-parcel

@parcel/core: Cannot find extended parcel config

\.parcelrc:2:41
  1 | {
> 2 |   "extends": ["@parcel/config-default", "@compiled/parcel-config"],
>   |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^ Cannot find module "@compiled/parcel-config", did you mean "@compiled/parcel-config"?
  3 |   "transformers": {
  4 |     "*.customjsx": [
Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistent Build Behavior & Errors While Building #7645
bug report I'm getting inconsistent build behavior. ... But then when clearing .parcel-cache and dist subsequent builds didn't work.
Read more >
Building a web app with Parcel
A getting started guide walking through how to setup a project with Parcel.
Read more >
Parcel debugging experience inconsistent - Stack Overflow
I have a rather simple setup: - parcel 1.12.4 - vs code 1.43.2 - chrome 80.0.3987.149 on macOS - chrome debugger extension -...
Read more >
parcel - npm
Get help with the CLI. Parcel Config. Parcel has always and will always work out of the box for many projects with zero...
Read more >
parcel | Yarn - Package Manager
parcel. owner parcel-bundler670.9kMIT2.8.2 vulns 0 vulnerabilities. Blazing fast, zero configuration web application bundler ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found