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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parcel library setup not working in Lerna package #7496
Comments
I'm also seeing this error with a web app after I migrated react from v16 to v17 and material-ui from v4 to v5.
I haven't been able to narrow it down to a single component yet. The react version is the only thing we seem to have in common. |
For library targets: - Skips applying refresh transforms in JSTransformer - Skips applying ReactRefreshRuntime - Skips applying transforms in ReactRefreshWrapTransformer - Adds test asserting that runtime and transforms are not applied Fixes #7359, #7496, #7652, #7900 See also: #6892 Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
#7914 should resolve this. |
@diego-hourly, did this fix work for you? My build target is browser, and I still see this error after upgrading to v2.4.1. |
@overtone1000 the fix will be in the next release. You could try installing |
馃悜 Apologies, I mistakenly thought #7914 was merged into the latest release. Indeed, parcel version 2.0.0-nightly.1041 successfully builds this project with the Many thanks! |
馃悰 bug report
I'm setting up a parcel library for a react component by using https://parceljs.org/getting-started/library/ and exporting a simple component in a Lerna monorepo (here is a sample repo). But got this error.
馃帥 Configuration (.babelrc, package.json, cli command)
package.json
packages/commons/package.json
:packages/client/package.json
NOTE: not sure why is
@parcel/transformer-react-refresh-wrap
required but if not included independencies
section the cli throws an errorNOTE 2: running
npm run build
works like a charmcli command
First install dependencies and then
start:common # which is basically parcel watch
馃 Expected Behavior
The app should watch and compile the source code
馃槸 Current Behavior
CLI throws this error:
馃拋 Possible Solution
馃敠 Context
Trying to create a common package in a Lerna monorepo.
馃捇 Code Sample
Here I created a simple sample of the setup I have.
https://github.com/diego-toro/poc-monorepo-parcel
馃實 Your Environment
The text was updated successfully, but these errors were encountered: