You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, the JSX would not render--there was just nothing on the page--when I removed the <script> elements that import dependencies from the web. I had the same issue with / without "require" statements and regardless of where I put the <script> element containing "app.js". I even tried installing babel and configuring parcel to use it, etc. even though I think the whole point of using parcel was to avoid that.
So it's not at all clear to me why things don't work as written in the chapter using parcel version 1, but for whatever reason I did get things to work eventually by just using parcel 2.
Not sure if this is useful for you all but I think the intent was to make these examples require minimal config, so passing this along in case it helps achieve that goal
The text was updated successfully, but these errors were encountered:
Hi, thanks again for this book and sorry for adding noise to your GitHub notifications
I had trouble getting the examples in Chapter 07 to work, starting from "Multiple files"
js4ds/dynamic.tex
Line 397 in 5981b9e
For some reason, the JSX would not render--there was just nothing on the page--when I removed the <script> elements that import dependencies from the web. I had the same issue with / without "require" statements and regardless of where I put the <script> element containing "app.js". I even tried installing
babel
and configuringparcel
to use it, etc. even though I think the whole point of using parcel was to avoid that.So it's not at all clear to me why things don't work as written in the chapter using
parcel
version 1, but for whatever reason I did get things to work eventually by just usingparcel
2.I needed to make two changes for this to work.
parcel
version 2 is now just installed withparcel
, notparcel-bundler
as described here: https://parceljs.org/getting-started/migration/#package-name
so this line in dynamic.tex:
js4ds/dynamic.tex
Line 327 in 5981b9e
would be
type="module"
instead of `type="text/babel"as shown here: https://parceljs.org/getting-started/migration/#%3Cscript-type%3D%22module%22%3E
so this line
js4ds/dynamic.tex
Line 454 in 5981b9e
would be
Not sure if this is useful for you all but I think the intent was to make these examples require minimal config, so passing this along in case it helps achieve that goal
The text was updated successfully, but these errors were encountered: