-
-
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
parcel serve fails on 2.8.3 but works fine on 2.7.0 #8782
Comments
Did you try installing "process" manually? |
yes, via pnpm: |
@maxcan having the same issue. |
Are both of you using pnpm workspaces? These Node polyfills have to be installed in the root of the workspace |
I am getting a different error actually, should have lead with that . But it is in the same ballpark basically:
I have tried :
The build comes out to be blank as nothing renders / console.log() too. |
does yarn use pnpm ? @mischnic |
Any kind of workspace feature (doesn't matter if it's npm, Yarn, pnpm), where you have multiple local packages with a single lockfile |
Then yeah I guess. How do I do this :
|
run |
The error still persists. |
@mischnic I'm not sure what this means in the context of pnpm. Unlike yarn, pnpm doesn't really have a "root" workspace but more just a cache of packages where each package is hard linked to the node_modules directory of any package that imports it. As far as any individual package can tell, it is no different from being a standalone npm package. Also, for me this only comes up with |
Hi @maxcan I am researching other gh issues to see if I can find a fix for a build/serve issue that I'm having after updating to 2.8.3. I'm wondering if you are able to build/serve from 2.8.2 ok? |
@mellodev, I just confirmed the same errors on 2.8.0, 2.8.1, and 2.8.2. 2.7.0 is the only one that seems to work for me. I haven't gone earlier than that though. |
-> #8788 (but since it's only the autoinstall that's broken, adding process manually as a dependency to the root should fix it as well) What I mean by root is the folder containing |
@mischnic I was having trouble installing the packages off the branch but I gave up and created a top level package.json to install Thanks for your help. |
🐛 bug report
Trying to build a simple React / TypeScript project. On parcel 2.7.0,
parcel serve
andparcel build
both run fine. On 2.8.3,parcel build
runs fine butparcel serve
runs into this error:None of the workarounds in #7697 or #7060 seem to work. Also, I've tried enabling
autoinstall
and get a similar erorr:🎛 Configuration (.babelrc, package.json, cli command)
broken package.json on 2.8.3
working package.json on 2.7.0
🤔 Expected Behavior
parcel serve
should successfully run in 2.8.3 as it does in 2.7.0😯 Current Behavior
parcel serve
does not successfully run in 2.8.3 as it does in 2.7.0💁 Possible Solution
downgrade to 2.7.0
🔦 Context
forces me to stay on an old version.
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: