-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Regressions in 2.8.3 #8787
Comments
I'm having a similar issue with 2.8.3 builds failing w/ error |
@mellodev The issue you referenced sounds to me like an issue with the cache. I've seen that particular error with renaming TS to .tsx. It was always transient though - building with I should have said that in this case, no shenanigans that I tried ended up with a successful build. Maybe the sass thing is a red herring... 🤷♂️ |
Perhaps. In my case, building with |
Nothing related to sass changed in that release: https://github.com/parcel-bundler/parcel/releases/tag/v2.8.3 Sounds like it could be related to changes in the bundler based on the stack trace in #6528. Any way you could share a reproduction? |
I see a possible solution in #6528 - seems like all I gotta do is "fix crash" 🤣 Dunno if I'll have time to repro this soon. My setup is kinda funky, so maybe at least that will give some clues on how to reproduce this. |
@dsibinski Can you share a complete reproduction? |
@mischnic I somehow can't isolate this issue in a sample app. // Layout.tsx
import "react-confirm-alert/src/react-confirm-alert.css";
import "./styles.scss";
export const Layout = ({ children }: { children: React.ReactNode }) => {
return <>{children}</>;
}; This "source": [
"src/appsEntries/initApp.ts",
"src/appsEntries/homeApp.ts",
"src/appsEntries/app1.ts",
"src/appsEntries/app2.ts",
"src/appsEntries/app3.ts"
] The content of each "app entry" file is similar. It exports a function from another .tsx file which uses It means that all of those entries (or sources) in their dependencies tree have import of As you can see, in Today I found out that the build error @import "../../../node_modules/react-confirm-alert/src/react-confirm-alert.css"; so this same .css file ( This is how the error message exactly looks like:
|
For me, upgrading from 2.3.2 -> 2.8.3 and launching it threw an error saying It was an optional dependency though, so after clearing cache and starting again, parcel it worked. |
I'm experiencing the "Error: Expected content key XXXXXXXXX to exist" issue as well after upgrading from v2.7.0 to v2.8.3. If I switch back to v2.7.0, the error goes away; but... if I delete my package-lock.json and node_modules (and .parcel-cache) and npm install, then I get the same error using v2.7.0. So it's possible the issue was introduced earlier, but package-lock.json has been masking it. @mellodev, you said v2.8.2 was working for you: if you remove package-lock.json and node_modules, then reinstall, does it begin to error at that version? |
No that doesn't match my experience: If I remove node_modules, .parcel-cache, pnpm-lock.yaml, update the dependencies to 2.8.3 then build/start dev server I will see: Afterward, if I remove node_modules, .parcel-cache, pnpm-lock.yaml, update the dependencies to 2.8.2 then build I get a successful build. We are using pnpm instead of npm in your case, but I don't think that will matter. Are you removing the .parcel-cache folder as part of your testing @tcmulder? |
Yes, I'm essentially running Guess I'm okay to keep running on v2.7.0 for now, it's not missing any features I need for current projects. |
I think I am encountering the exact same issue and made a very minimal sample: The gist seems to be: if you import multiple CSS files from JS, only the first CSS file can import other CSS files flowchart LR
parcel(parcel build --no-cache index.html) --> index.html --> index.js
index.js --> a.css
index.js --> b.css --> |issue| bb.css
|
Could you test the nightly version ( |
@mischnic +1 nightly works on my sample and bigger project |
@mischnic nightly also works for me. |
For reference: |
🐛 bug report
Upgrading parcel to 2.8.3 (from 2.8.2) caused some builds to break. It's not clear what exactly happened, but I think everything was related to sass.
I don't know if transformers are compatible with non-matching versions of parcel, but I didn't try downgrading only
transformer-sass
.🎛 Configuration (.babelrc, package.json, cli command)
Not using babel.
I have a couple of local resolver plugins, only one of which I think is relevant - it aliases react to preact and is needed (AFAICT) to resolve those aliases in a monorepo where I also depend on react proper.
The only explicit parcel deps:
My setup builds a bunch of independent html sources using a shared parcel config.
😯 Current Behavior
<link>
)Error: Expected content key XXXXXXXXX to exist
. I suspected that font faces withsrc: url(../relative/path.ttf)
were the culprit, but I couldn't confirm easily. Removing some of these didn't seem to help.I apologize, I reverted the upgrade later and don't have an example of the original backtrace. They didn't give me any particular clues as to what the problem was.
💁 Possible Solution
Downgrading all things parcel to v2.8.2 caused everything to work as expected.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: